Questions tagged [git-head]
3 questions
293
votes
4 answers
HEAD and ORIG_HEAD in Git
What do these symbols refer to and what do they mean?
(I can't find any explanation in official documentation)

collimarco
- 34,231
- 36
- 108
- 142
0
votes
1 answer
Difference between "git reset HEAD " and "git reset -- "?
When I stage a file, "git status" then mentions that, to UNstage that file, I can do "git reset HEAD filename". But I have also seen instances in which the recommended command is "git reset -- filename".
Sorry, I do not remember the superficial…

John Reed Avery
- 121
- 1
- 7
0
votes
1 answer
git: how to revert to a previous commit and continue from there?
[git newbie here]
I have the following commits:
[c1]-->[c2]-->[c3]-->[c4]-->[c5]
HEAD is now at c5 but I realized that c4 and c5 are not good and I wish to continue from c3. In other words, I wish to revert to c3 mark it as HEAD and continue from…

pylos
- 102
- 8