Advice.detachedHead
Jump to navigation
Jump to search
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[edit]
git checkout git push origin
See also[edit]
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/, Git Credential Manager
Advertising: