I have added the file extension .patch
to my .gitignore_global
, however this hasn't updated in my local repo yet. I want to remove this from the untracked list but keep the file in my local repo.
git status:
Kierans-MacBook-Pro:master-abc kpmacbook$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
0001-adding-column.patch
nothing added to commit but untracked files present (use "git add" to track)
When I try to run this command: git rm --cached 0001-adding-column.patch
I get this:
Kierans-MacBook-Pro:master-abc kpmacbook$ git rm --cached 0001-adding-column.patch
fatal: pathspec '0001-adding-column.patch' did not match any files
Kierans-MacBook-Pro:master-abc kpmacbook$
EDIT More info:
Kierans-MacBook-Pro:master-abc kpmacbook$ git config --get core.excludesfile
~/.gitignore_global
.gitignore_global file:
Kierans-MacBook-Pro:master-abc kpmacbook$ cat ~/.gitignore_global
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# codekit #
###########
.sass-cache/
.codekit-config.json
config.codekit
# git #
.patch
How do I fix?