跳過使用暫存區域

儘管使用暫存區域的方式能夠精心準備要提交的細節,但有時候這麼作略顯繁瑣。Git 提供了一個跳過使用暫存區域的方式,只要在提交的時候,給git commit 加上 -a選項,Git 就會自動把全部已經跟蹤過的文件暫存起來一併提交,從而跳過 git add步驟:git $ git status # On branch master # # Changes not staged for commi
相關文章
相關標籤/搜索