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 6: | Line 6: | ||
[[git push origin HEAD]]:<name-of-remote-branch> | [[git push origin HEAD]]:<name-of-remote-branch> | ||
+ | |||
+ | git push origin HEAD:name-of-remote-branch-without-origin/ | ||
Line 11: | Line 13: | ||
[[has no upstream branch]] | [[has no upstream branch]] | ||
+ | == See also == | ||
* {{git status}} | * {{git status}} | ||
* {{git push}} | * {{git push}} |
Revision as of 12:05, 27 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 origin HEAD:name-of-remote-branch-without-origin/
git status has no upstream branch
See also
Advertising: