2013年11月24日

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 阅读(723) 评论(0) 推荐(0) 编辑

导航