Shell/Bash: git global ignore Example


Shell/Bash Example: This is the "git global ignore" Example. compiled from many sources on the internet by

git global ignore

#Create your global ignore file like a normal .gitignore
#in your home folder.
git config --global core.excludesfile /path/to/home/.gitignore
#Your git now exclude any file declared in that .gitignore
#It's useful for hide your IDE's folder (.idea, .vscode, ...)

set global git ignore

touch ~/.gitignore
git config --global core.excludesfile ~./gitignore

git ignore global

# .gitignore global
# IntelliJ IDEA

# Mac

# Clojure

# Scala

# Custom

* Summary: This "git global ignore" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!