I have two repositories in GitHub, the second one being a clone of the first, and for the time being private (for security reasons).
I cloned this second on my machine so I could work on it, but besides my own commits I also need to keep it updated with the first one.
I'm studying about git remote
, because if I understood correctly a git remote update
would give the message, but I have some doubts, for example:
1 - Is this really the best way to keep one repo updated with another? (the second being private)
2 - If I give a git remote add
to link the first repo in this private, and update it, when giving a push
I run the risk of sending to the first (public)? Because this can not occur.