2012年11月8日

git command 心得

git annotate file (相當於git blame -c file)
可以秀出file中每一行code的修改人與修改日期。

git stash
將目前所有修改的檔案暫存 (不含新產生的檔案)
建議用git stash apply取回暫存檔,避免使用git stash pop (取出後刪除該stash檔)取回檔案時產生衝突,解完後仍有問題而無法找回。

沒有留言:

張貼留言