You cannot push because the local repository has a detached HEAD. code example Example: head detached at origin/master git checkout master