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)
Run Code Online (Sandbox Code Playgroud)
这是运行时的一些输出git status.
我不介意"未提交更改的更改:"消息,但我不希望看到关于如何"更新将要提交的内容"等的"帮助"命令,因为它们只是添加了很多噪音.
我知道git status -s,但这不是我真正想要的.
有没有办法摆脱帮助信息?
我正在使用python脚本下载我的库的依赖项(提取为git repository),并且它向.git/info/excludegit repository 添加了行。但是,当将其提取为子模块时,不存在.git / info / exclude文件,我仍然需要排除一些路径而不将其添加到“ .gitignore”中。有任何改变吗?
repo
??.git
? ??info
? ??exclude
??mylibrary (as_submodule)
??extract_deps.py
??some_dep (created by `extract_deps.py` and should be excluded)
Run Code Online (Sandbox Code Playgroud)
在上图中,我需要some_dep从git更改中排除。
添加mylibrary/some_dep到repo/.git/info/exclude没有帮助,因为git status仍然显示mylibrary/some_dep已添加和未跟踪。