简体   繁体   中英

Permanently ignore local changes to tracked files

I have a folder with a template project in my repo. After push, the folder was added to .gitignore. This works great regarding new files, but it still tracks modified ones.

I know about the option to ignore changes locally with

git update-index --assume-unchanged

but I want both new and modified files to be ignored for all users of the repo.

How can i make git ignore the modified files, preferrably set in .gitignore?

您可以使用.gitignore忽略文件,使用update-index --assume-unchanged来忽略版本化文件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM