Difference between revisions of "HEAD"

From wikieduonline
Jump to navigation Jump to search
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<code>[[HEAD is now at]] XXXXX ...</code>
+
* <code>[[HEAD is now at]] XXXXX ...</code>
 +
* <code>[[Detached HEAD]]</code>
 +
* <code>[[HEAD detached]]</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 ==
 
* <code>[[git checkout new branch]]</code>
 
* <code>[[git checkout new branch]]</code>
 
+
* <code>[[git push origin]] HEAD:/your-branch</code>
 +
* <code>[[git checkout]]</code>
 +
* <code>[[allowed_methods]]</code>
 +
* [[HTTP HEAD method]]
  
 
== See also ==
 
== See also ==

Latest revision as of 14:17, 8 June 2023

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[edit]

See also[edit]

Advertising: