Skip to content

Instantly share code, notes, and snippets.

@johnmeehan
Created November 13, 2020 11:21
Show Gist options
  • Save johnmeehan/60423d65f1db5aacbf684003960c6fa1 to your computer and use it in GitHub Desktop.
Save johnmeehan/60423d65f1db5aacbf684003960c6fa1 to your computer and use it in GitHub Desktop.
Personal Gitignore within a project

Add a personal .gitignore to a project.

Within the project git config --local -e

[core]
    ... (existing configurations)
    excludesfile = ~/Documents/my_repo/.john_gitignore
[remote "origin"]
    ... (existing configurations)
[branch "master"]
    ... (existing configurations)
#project_name/.john_gitignore

.john_gitignore

.solargraph.yml
.vscode

...stuff only relevant to you that you want to ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment