Yesterday, I posted a question on how to clone a Git repository from one of my machines to another, How can I \'git clone\' from another machine?.
I am now
Pull and push again:
git pull; git push
Push into different branch:
git push origin master:foo
and merge it on remote (either by git
or pull-request)
git merge foo
Force it (not recommended unless you deliberately changed commits via rebase
):
git push origin master -f
If still refused, disable denyCurrentBranch
on remote repository:
git config receive.denyCurrentBranch ignore