Nowadays, most of our project use Git as a version control system. It means most of our project have a .git folder. But, have you ever tried to ope...
For further actions, you may consider blocking this person and/or reporting abuse
Is there a way to tell, from the
git reflog
view, that the third commit is orphaned?I think there is a way. The term is “an unreachable” commit. I don’t know the commands though.
I don't think you can do it with
reflog
.However, you can use
git fsck --lost-found
. This command will give you all dangling blobs and commits.After the command, check the
.git/lost-found
folder.In a "hello world" project with a few commits it can be cool... however on a big project it will give you hundred of files 😕
👉git-scm.com/docs/git-fsck
You have successfully sparked my interest in learning the ins-and-outs of Git. Great post!!
Thanks Victoria! I'm glad if my article raised your interest in Git 😃
Very informative! Thanks!
thank for your feedback Lee :)
Excelent post! I completely forgot that reflog existed so it is very useful to remember it again! Thank you!
Thank you! And yeah
git reflog
saved my life a couple of times :DInformative. Thank you
Great post! I just never opened the .git folder so far.