Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Sunday, December 7, 2014

git 開發好習慣

好習慣是我自己說的
感覺這樣比較不會弄錯
真的錯了也比較不會出事 (比較好救)

git commit 弄錯的處理方法

git 是一個好用的版本控制工具
但有時候難免也會在 commit 的時候不小心出一點錯
像是 "阿剛剛 commit message 寫錯了"
或者是 "WT* 這 code 根本有問題,這次 commit 重來啦"
之類的
只要還沒 push 都有得救
如果 push 了的話就不要再亂搞了,因為聽說會發生很恐怖的事情