Difference between revisions of "Git push -v"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
[[git push origin]] HEAD:<name-of-remote-branch> | [[git push origin]] HEAD:<name-of-remote-branch> | ||
− | + | Error if you ommit [[HEAD]]: | |
[[git push origin]] name-of-remote-branch | [[git push origin]] name-of-remote-branch | ||
error: src [[refspec]] name-of-remote-branch does not match any | error: src [[refspec]] name-of-remote-branch does not match any |
Revision as of 09:35, 16 November 2022
git push -v
GIT_SSH_COMMAND="ssh -v" GIT_TRACE=1 git push -vvv -u origin main
git push -v fatal: You are not currently on a branch. To push the history leading to the current (detached HEAD) state now, use git push origin HEAD:<name-of-remote-branch>
git push origin HEAD:<name-of-remote-branch>
Error if you ommit HEAD:
git push origin name-of-remote-branch error: src refspec name-of-remote-branch does not match any error: failed to push some refs to 'gitlab.com:project/app.git'
git status HEAD detached from origin/your-branch-name nothing to commit, working tree clean
Related
See also
Advertising: