Difference between revisions of "Advice.detachedHead"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(5 intermediate revisions by 2 users not shown)
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>
 +
 
 +
 
 +
== Related ==
 +
[[git checkout]]
 +
[[git push origin]]
  
 
== See also ==
 
== See also ==

Latest revision as of 11:05, 27 March 2023

Advertising: