Skip to main content
Filter by
Sorted by
Tagged with
2 votes
3 answers
196 views

I'm trying to make my Git script resilient to various weird situations that can occur in repository. I have it working correctly with detached branches and orphaned branches but it will probably not ...
Piotr Siupa's user avatar
  • 5,275
0 votes
1 answer
87 views

Can I make an arbitrary commit at the end of branch dev when HEAD is not on dev? How? My git branches look like this at any moment: There is a master branch, from which a couple of feature branches ...
Brambor's user avatar
  • 728
0 votes
1 answer
64 views

I have a feature branch ff which is based on main. I want to bring changes made by a commit HEAD abcde on top of ff. How can I do this?
pip's user avatar
  • 37
0 votes
1 answer
168 views

I'm lookng into git worktrees b/c I want to work on multiple branches at once. Did the following setup # Created new E:\ partion cd /d E: mkdir repos cd repos git clone --bare <repository-url>/...
joseville's user avatar
  • 1,033
-2 votes
1 answer
72 views

When I do git fetch origin main I get: From github.com:company/app-ios * branch main -> FETCH_HEAD However when I do git pull main I don't get any mention of ORIG_HEAD or ...
mfaani's user avatar
  • 37.1k
0 votes
2 answers
167 views

Due to a syncing problem, I lost some files. I check git status and it says: fatal: not a git repository (or any of the parent directories): .git But the .git folder still seems to be fine: ls .git ...
Ooker's user avatar
  • 3,400
0 votes
1 answer
96 views

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 &...
John Reed Avery's user avatar
0 votes
1 answer
870 views

[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 ...
pylos's user avatar
  • 112
265 votes
6 answers
119k views

There seems to be a difference between the last commit, the HEAD and the state of the file I can see in my directory. What is HEAD, what can I do with it and what mistake should I avoid?
Bite code's user avatar
  • 601k
309 votes
4 answers
138k views

What do these symbols refer to and what do they mean? (I can't find any explanation in official documentation)
collimarco's user avatar
  • 35.8k