Make A Global Gitignore

[Solved] Make A Global Gitignore | Shell - Code Explorer | yomemimo.com
Question : global gitignore

Answered by : richard-lievesley

#Windows:
#Run this in cmd:
git config --global core.excludesFile "%USERPROFILE%\.gitignore" && notepad "%USERPROFILE%\.gitignore"
#Notepad will open, press yes to the prompt to make a new file.
#Any changes made to this file will work immediately for all repos.
## This makes both a ".gitconfig" and a ".gitignore" file in %USERPROFILE%
## The ".gitconfig" file is required for the ".gitignore" file to work.

Source : | Last Update : Sun, 23 Oct 22

Answers related to make a global gitignore

Code Explorer Popular Question For Shell