I have a github repository with some work inside.
I have been asked to push this work to another host.
So far, I added the other remote to my local repository:
git remote -v
apt URL (fetch)
apt URL (push)
origin URL (fetch)
origin URL (push)
Origin
is the original repo I used, apt
is the new remote repository.
However, in the new (apt
) remote, there is already a readme (created by default), and I do not have the permission to git push -f to the (nearly) empty new remote.
My guess is that I should merge/rebase the master of the origin
with the master of apt
. I am "afraid" to do stuff because I am not sure how git will behave handling two branches with the same name (if such a thing is possible).
How can I push my work, present on origin/master, to apt/master ?