r/git • u/Future-Ride-5955 • Oct 24 '26
I use github to maintain a small archive and now git pull keeps complaining about a file that I removed from the remote branch and local branch
Because I absolutely suck at github I have been doing things weirdly by using both the browser client and git bash. I do that because gitbash has been stupidly obtuse whenever I have tried to use it. I have my system setup where github lfs reads the .zip format for its job while the rest of the files use the custom format name that the archive for the program I am using uses (we will go with .zap). the problem is anytime I try to push from local it will constantly complain so I delete local and then pull fro remote as its the same files. I had this file called pre2026stuff.zip which I used lfs for, I just recently broke all of that down into all of its separate .zap files and and then deleted it from both local and remote (remote via the more file actions -> delete file)
now anytime I try to to git pull in my local repo it complains$ git pull
error: Your local changes to the following files would be overwritten by merge:
Updating files: 100% (102/102), done.
Merge with strategy ort failed.
Even though its both removed from the local directory and the remote directory from the browser view
2
u/lolcrunchy Oct 24 '26
Did you accidentally create a branch and are looking at two different branches between the two different tools?
8
u/bostonaholic Oct 24 '26
Git thinks you still have a modified tracked copy of that file, probably the LFS pointer. Run git status, then git restore Pre2026stuff.zip (or git stash if you want to keep it) and pull again. Also note your error says Pre2026stuff.zip while you named it pre2026stuff.zip, so a case mismatch on a case-insensitive filesystem could be involved.
1
u/Swedophone Oct 24 '26 edited Oct 24 '26
Since you have an uncommitted change to a file I think the main alternatives are one of
Or do LFS files work differently than other files in git?