Difference between revisions of "Fatal: You are not currently on a branch"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
git push origin HEAD:name-of-remote-branch-without-origin/ | git push origin HEAD:name-of-remote-branch-without-origin/ | ||
− | + | == Related == | |
− | + | * <code>[[git status]]</code> | |
− | + | * <code>[[has no upstream branch]]</code> | |
== See also == | == See also == | ||
* {{git status}} | * {{git status}} | ||
* {{git push}} | * {{git push}} | ||
+ | |||
+ | [[Category:Git]] |
Latest revision as of 12:12, 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/
Related[edit]
See also[edit]
Advertising: