git-memo-command-question-collection-commonly-collected slowly

 

 

 

Resolve files that cannot be ignored by .gitignore and methods that are ignored by themselves

.gitignore can only ignore files that were not originally tracked. If some files have been included in version management, modifying .gitignore is invalid.

The correct approach is to manually set each cloned repository not to check for changes to specific files.

git update-index --assume-unchanged PATH/FILE

Enter files to ignore at PATH/FILE.

Then add the files or folders to be ignored in the .gitignore file.

 

 

 

--------

+

+

=

+

+

=

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326307001&siteId=291194637