I know that it would be easier to use git push origin master
, but if I do:
git push origin .git/refs/heads/master:.git/refs/remotes/origin/master
I get:
fatal: remote part of refspec is not a valid name in .git/refs/heads/master:.git/refs/remotes/origin/master
Why doesn't this work?
I'm only trying to follow:
git push [remotename] [localbranch]:[remotebranch]