git fsck / git prune

git fsck  查看懸空對象

git prune  刪除懸空對象

 

如下情況均會產生懸空對象

  git add 不提交,產生的commit對象

  git tag -d 

  git stash drop stash{n}

posted @ 2025-03-18 15:17  海哲飞  阅读(6)  评论(0)    收藏  举报