Difference between revisions of "Fatal: You are not currently on a branch"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 3: | Line 3: | ||
fatal: You are not currently on a branch. | fatal: You are not currently on a branch. | ||
− | To push the history leading to the current (detached [[HEAD]]) state now, use | + | 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> |
Revision as of 12:31, 17 March 2023
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
[ -v
| --set-upstream | -o | --set-upstream origin master
| -u origin main
| origin master
| -u origin master
| --delete master
| -u | origin HEAD | --dry-run
], Git: upstream, git push --force
Advertising: