我有这个 git 状态:
User#/d/Work/Project/Module1/NV/build (master)$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 3 commits.
# (use "git push" to publish your local commits)
#
# 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)
#
# modified: ../../Module1/CMakeLists.txt
# modified: ../../Module1/Container.cpp
#
no changes added to commit (use "git add" and/or "git commit -a")
如何添加 2 个文件?git add -A
不工作?git add ../../.
我知道出于显而易见的原因可以使用该选项。
我知道可以使用git add
选项添加文件,但我不记得了,也找不到。我用git version 1.8.1.msysgit.1
.