GITIGNORE


Posted on September 21, 2019 by Vana

To exclude files from being tracked and committed to git, we can use git ignore.
Create or iedit a gitignore file with the files and folders you want to be ignored.

After that, use git bash and enter the following commands:

git rm -r –cached .

git add .

git commit -m “gitignore is now working”

Reference: https://stackoverflow.com/questions/19663093/apply-gitignore-on-an-existing-repository-already-tracking-large-number-of-file

Post a Comment

0 Comments