I have a repo for an obsidian vault that I added a .gitignore
file to. However the .gitignore
is being pushed.
When at first I saw that it was being uploaded I tried running:
git rm --cached .gitignore
git add .gitignore
git commit -m "Update .gitignore"
But still, it remains uploaded along with any files it outlines. I also deleted everything on git, made a new branch, and forcefully overwrote main
with the new_temp_branch
. I had hoped that the new branch, having a .gitignore
from the first commit, would not upload the file. I was wrong.
My .gitigore
file has no listed file type / does not end with .txt
etc. It is spelt correctly.
Is it possible it has something to do with Obsidian?