Git清除不被任何分支所有的commit
摘要:
在一個分支上開發,有一些commit沒有merge進master,后來放棄這個分支,不想繼續開發了,那么這些沒merge的commit就丟失了,稱為dangling。想要清除這些commit,運行:git reflog expire --expire-unreachable=now --allgit gc --prune=now參考資料:http://stackoverflow.com/questions/3765234/listing-and-deleting-git-commits-that-are-under-no-branch-dangling 閱讀全文
posted @ 2013-11-24 09:48 大寶pku 閱讀(782) 評論(0) 推薦(0)
浙公網安備 33010602011771號