Say I have a repo, let's call it origin
. I clone it into another repo, working
. I make some changes (and commit them locally). I now want to push them back to origin
.
My understanding of this is that git push
will say "no, origin
is a working copy, this will overwrite it". I have previously used the option (in origin
) to allow pushes to overwrite the current working copy, and thus allow pushes. Is there a way (with or without that), to allow pushes to add to the commit tree, but not update origin/master
or mess with the working directory?
In effect, git push
is the inverse of git pull
(acquire updates and update the working directory); what is the inverse of git fetch
(acquire updates)?