1
即使做git的添加-A後,當我運行的git狀態,我得到這個:git的添加-A不工作
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# (commit or discard the untracked or modified content in submodules)
#
# modified: src/cartographer (modified content, untracked content)
# modified: src/cartographer_ros (untracked content)
#
no changes added to commit (use "git add" and/or "git commit -a")
任何想法如何解決這一問題?
Git add-a而不是A? – Andromelus
你所引用的文本是'git commit'從'git status'中保存的內容,與'git status'直接寫入的內容不太一樣,這讓我想知道:(a)你使用的Git版本是什麼?和(b)你在頂層目錄的子目錄中嗎?運行'git --version'和'git rev-parse --show-cdup'來確定我的懷疑是否正確:Git版本號低於2.0,並且在src/*'是'../的子目錄中SRC/*'。 – torek
@Aluslus'git add -A'是一個有效的命令... – ifconfig