What happens to orphaned commits?

后端 未结 3 463
失恋的感觉
失恋的感觉 2020-12-31 06:04

I have a repo with four commits:

$ git log --oneline --decorate
6c35831 (HEAD, master) C4
974073b C3
e27b22c C2
9f2d694 C1

I reset --

3条回答
  •  感情败类
    2020-12-31 06:46

    Orphaned commits just stay there until they are garbage collected by explicitly running git gc.

提交回复
热议问题