How can I make Git stop the watch folder in Git gui on windows

I am working on my android project and push to host. I want the Git GUI to stop tracking the folder bin

. How should I do it. Please note: I cannot use BASH interface

because it is a little defective.

How to add bin folder to .gitignore

?

+3


source to share


1 answer


You need to either create a file named .gitignore

(using a regular text editor) in the root of the git repository and provide the path to the directory bin

. Once you've created and edited this file, you must commit to git.

Or you can edit .git/info/excludes

(with a regular text editor) and provide the directory path bin

. This file is not required.



Remember that if you have already added this file to git version tracking, you must remove it (carefully, removing it from the repository also removes the files themselves, so make backups).

AFAIK removing a file from version tracking is optional as git should ignore them and when you commit next time they should be skipped. But it makes no sense to have files in version tracking and not change them (there are several cases).

+1


source







All Articles