.gitignore arquivo não ignorando o arquivo
git rm -r --cached .
git add .
git commit -m “.gitignore is now working”
Scary Stork
git rm -r --cached .
git add .
git commit -m “.gitignore is now working”
pippo/*
!pippo/pluto
pippo/pluto/*
!pippo/pluto/paperino.xml
git rm --cached [filename]
# ignore everything in current directory
/*
# !pattern now negates the "ignore everything" and keeps 'pattern'
# keep .gitignore
!.gitignore
# keep mydirectory, along with everything inside it
!mydirectory/
# Ignore everything
*
# But not these files...
!.gitignore
!script.pl
!template.latex
# etc...
# ...even if they are in subdirectories
!*/
# if the files to be tracked are in subdirectories
!*/a/b/file1.txt
!*/a/b/c/*