Git 能不能当 staging area 有东西的时候,git commit -am 给一个确认提示

kikyous · March 23, 2013 · Last by aptx4869 replied at March 23, 2013 · 2289 hits

有时候用 git add -i 之后 提交的时候又惯性的输入了 git commit -am 很恼火 有没有办法这时候给出一个确认提示呢?

每次 commit 前做一次 git diff,就不会有这个问题

用惯了 Fugitive.vim 之后就再也没用过 gc -am,而且逐行缓存提交也比 git add -i 更直观

You need to Sign in before reply, if you don't have an account, please Sign up first.