Difference between revisions of "HEAD"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 1: Line 1:
 
<code>[[HEAD is now at]] XXXXX ...</code>
 
<code>[[HEAD is now at]] XXXXX ...</code>
 +
 +
 +
You are in '[[detached]] HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.
  
 
== Related ==
 
== Related ==
Line 5: Line 8:
  
 
  [[git push origin]] HEAD:/your-branch
 
  [[git push origin]] HEAD:/your-branch
 +
[[git checkout]]
  
 
== See also ==
 
== See also ==

Revision as of 19:09, 8 March 2023

HEAD is now at XXXXX ...


You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

Related

git push origin HEAD:/your-branch
git checkout

See also

Advertising: