2
A
回答
2
您可以在add
或commit
命令中列出所有這些文件。例如:
git add [file name] [file name] [file name] ...
或
git commit [file name] [file name] [file name] ... -m 'commit message'
7
首先將文件添加到舞臺上,例如:
git add file1 file2 file3 file4
或者整個目錄:
git add directory1/ directory2/
當所有都在上演,你可以一次提交所有這些:
git commit -m "All at once"
2
的Git的Bash支持使用它添加和許多其他命令的正則表達式。所以說,例如,你想添加目錄中的所有Java文件,你可以不喜歡
git add /path/to/dir/*.java
一如既往可以運行git add --help
找出更多的用法和選項的git優惠。
2
添加上@Brovoker答案的頂部,有很多種方法來實現:
舉幾個例子:
git add .
將上演從當前目錄一切注:這不會上演文件已被刪除。
git add -A
將階段的一切,包括刪除的文件。
你甚至可以使用通配符同時加入git add directory/my*
將在開始my
欲瞭解更多信息,你應該籤更多選項man git-add
和man git-commit
目錄添加的所有文件。
相關問題
- 1. 請閱讀git的承諾從文件
- 2. 承諾git on
- 3. 如何列出每個尺寸的承諾git文件?
- 4. 如何取消本地git的承諾
- 5. 如何克隆較舊的GIT承諾
- 6. 如何撤消git的附加承諾
- 7. Git blame承諾行
- 8. Git拉舊承諾
- 9. 的Dropbox> git的承諾
- 10. 更新文本時承諾的git
- 11. NodeJS - Q - 如何在另一個承諾中承諾承諾
- 12. jQuery推遲/承諾與許多getJSON
- 13. git的承諾,以新科
- 14. 的Git失去了承諾
- 15. 撤消git的承諾
- 16. git的承諾每次
- 17. git的差異承諾
- 18. 含義git的承諾
- 19. Git的承諾,而分期
- 20. git的承諾-a錯誤
- 21. git的承諾由六
- 22. git的承諾掛在1KB的文件提交
- 23. 解決承諾內的多重承諾
- 24. 如何拒絕承諾內的承諾
- 25. 如何分配git的承諾散在詹金斯變量文件
- 26. JavaScript承諾 - 如何做出多重承諾?
- 27. 不能退出git的承諾在Windows
- 28. Git承諾和推動
- 29. Git只爲我承諾
我不知道通配符等是由於git支持還是隻是一個BASH功能。 –
非常真實。謝謝你指出。 – 9er