What happens to orphaned commits?
I have a repo with four commits: $ git log --oneline --decorate 6c35831 (HEAD, master) C4 974073b C3 e27b22c C2 9f2d694 C1 I reset -- soft to the C2 commit and now I have a repo like so: $ git reset e27b22c --soft $ git log --oneline --decorate e27b22c (HEAD, master) C2 9f2d694 C1 Now I add an extra commit, so the log looks like this: $ git log --oneline --decorate 545fa99 (HEAD, master) C5 e27b22c C2 9f2d694 C1 What happened to commits C3 and C4 ? I haven't deleted them, so I assume they are still there, C3 's parent is still C2 . Short answer: Commits C3 and C4 will remain in the Git object