Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to ignore files in git

Then in Git Bash you have to write the following line:

git config --global core.excludesfile ~/.gitignore_global
--------------------------------------------------------------------
If the repository already exists then you have to do the following:

git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
If the step 2 doesn’t work then you should write the whole route of the files that you would like to add.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #ignore #files #git
ADD COMMENT
Topic
Name
8+7 =