Using Obsidian Git, I inadvertently tried to push a > 600mb attachment folder (along with usual changes of some “.md” files that needed to be backed-up). It would have taken forever so I just killed the process while Obsidian Git was pushing (probably worst idea ever).
Then, on Github, I added a .gitignore file with the path of attachment folder to be excluded and pulled the changes to my local repo using command line.
Now, how can I properly exclude this “attachment” folder since it was already committed to my local repo ?
I was thinking of something like git rm ATTACHMENT_PATH, but wouldn’t Obsidian Git try to add back this folder each times it tries to push ? Will the .gitignore file prevent this after the git rm ?
I hope this is not too confuse, I’m new to git.
Any help is welcome !