Skip to content

Instantly share code, notes, and snippets.

@tanvirraj
Created January 21, 2023 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanvirraj/cff0d2feb953126d672831b11d3e1ffa to your computer and use it in GitHub Desktop.
Save tanvirraj/cff0d2feb953126d672831b11d3e1ffa to your computer and use it in GitHub Desktop.

Doing this for every project would get old - turns out you can ignore files in git globally. 1. Create a file at: ~/.gitignore_global 2. Add scratch.md to the first line 3. Run: git config --global core.excludesfile ~/.gitignore_global There ya go, now you can scratch away in your new scratch.md file. Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment