Difference between revisions of "Advice.detachedHead"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 1: | Line 1: | ||
Turn off this advice by setting config variable [[advice.detachedHead]] to false | Turn off this advice by setting config variable [[advice.detachedHead]] to false | ||
+ | |||
+ | |||
+ | |||
+ | git push | ||
+ | [[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> | ||
Revision as of 11:05, 27 March 2023
Turn off this advice by setting config variable advice.detachedHead to false
git push 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>
Related
git checkout git push origin
See also
git
: [config | init | status ]
,git add
,git rm
,git commit
,git push, git pull
,.gitconfig
,.gitignore
,git
(clone
,fetch
,pull
),git tag
,git log
,git blame
, Merge Request, LFS,git branch
,git apply
,git rebase
,git diff
,git diff-tree
,git config --global
,remote | submodule | request-pull
,GIT_TRACE, GIT_CURL_VERBOSE
,clean
,main
,git show-ref
,git reset
,git prune
,git ls-remote origin
,git checkout
,git switch
,pathspec
,git credential-osxkeychain
,git version
,pre-commit
,git --help
, GitBook,refs/
Advertising: