.gitignore 文件修改后如何兑现其效果 - DigitalPlatform/dp2 GitHub Wiki

摘要: .gitignore 文件修改后,repo 内包含和舍弃文件的效果并不会立即兑现,需要用 git 命令行进行一些操作。 .gitignore 文件修改后,repo 内包含和舍弃文件的效果并不会立即兑现,需要用 git 命令行进行一些操作。

http://stackoverflow.com/questions/1139762/ignore-files-that-have-already-been-committed-to-a-git-repository

Ignore files that have already been committed to a Git repository ... To untrack a single file that has already been added/initialized to your repository, i.e., stop tracking the file but not delete it from your system use: git rm --cached filename

To untrack every file that is now in your .gitignore:

First commit any outstanding code changes, and then, run this command:

git rm -r --cached .

This removes any changed files from the index(staging area), then just run:

git add .

Commit it:

git commit -m ".gitignore is now working"

===

http://blog.csdn.net/qq_25407771/article/details/74779996

VS2017中文乱码

vs2017默认编码方式并不是UTF-8,当我们使用中文时,经常会发生乱码。解决方法:工具->扩展和更新->联机,然后搜索ForceUTF8

===

注意 git rm 命令中的文件路径,字符是大小写敏感的,和 Windows 的一般习惯不同