Tag: status

忽略git子模块的新提交

背景 在Linux上使用Git 1.8.1.1。 存储库看起来如下所示: master book 子模块创build如下: $ cd /path/to/master $ git submodule add https://user@bitbucket.org/user/repo.git book book子模块是干净的: $ cd /path/to/master/book/ $ git status # On branch master nothing to commit, working directory clean 问题 另一方面,主人显示书籍子模块有“新提交”: $ cd /path/to/master/ $ git status # On branch master # Changes not staged for commit: # (use "git add […]