This question is related to this previous question.
These two files below are under version control which causes some inconvenience in magit-status
:
Unstaged changes (2)
modified .emacs.d/projectile-bookmarks.eld
modified .emacs.d/transient/history.el
This is my .gitignore
file:
transient
projectile-bookmarks.eld
.emacs.d/projectile-bookmarks.eld
.emacs.d/transient/history.el
The file location is: .dotfiles/.gitignore
. I thought my gitignore
file would solve this.
Did I miss something? How can I fix this?
I want to remove these files from being under version control. It is necessary to keep them in my machine, apparently - since the emacs package depends on it to properly work.
.gitignore
only prevents files from being added when adding a directory, or listed as unchanged when they aren't committed. It has no effect on files that are already committed.