2013年10月31日
摘要: gitlog--graph--oneline中的--oneline相当于--pretty=oneline但是可以显示更短小的idgitreset--hardHEAD^gitreset--hard可以回滚到任何一次commit回滚后就回不去了用reflog挽救错误的重置查看分支日志文件tail-5.git/logs/refs/heads/mastergitreflogshowmaster|head-5gitreset--hardmaster@{2}回到刚才没回滚之前的状态gitlog--onelinegitreflog可以查看所有分支的所有操作记录(包括(包括commit和reset的操作),包 阅读全文
posted @ 2013-10-31 22:28 c3tc3tc3t 阅读(235) 评论(0) 推荐(0)