| Global Ignore = Ignore on everywhere
# Ignore file
file.ext
# Igonre all Files with extension
*.exe
#Igonre all files with name
file.*
# Ignore folder
folder/
# Ignore all folders starts with name
folder*/
| Single file/folder Ignore
# Ignore file
/location/file.ext
# Igonre all Files with extension
/location/*.exe
#Igonre all files with name
/location/file.*
# Ignore folder
/location/folder/
# Ignore all folders starts with name
/location/folder*/
| Exclude from Ignore = dont ignore these files or folders
all the above commands are included, but add "!" at the beginning
example: ignore all ".exe" files but only leave the one in "/bin"
.gitignore>>
*.exe
!/bin/*.exe
| Ignore Development Files Like Config and Temp Data
same like using .gitignore file but to a different file "
.git/info/exclude"
Comments
Post a Comment