Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot `git rm` A Previously Tracked File

I have a developer on a Windows 8 computer who's installed git from Git-Scm who can't use git rm to remove files from his repo.

git --version output:

version 1.8.1.msysgit.1

When he attempts to untrack the file, he gets this message:

fatal: pathspec '<path>' did not match any files

I'm not sure what the issue is, we've tried a variety of ways of entering the path from Windows (./folder/file, "./folder/file", folder/file, "folder/file") and none of the attempts have worked so far.

I could just remove the files on my machine if I wanted, but I'd like to know what the issue is with Git here. Why can't he git rm files?

like image 274
AlbertEngelB Avatar asked Aug 01 '26 14:08

AlbertEngelB


1 Answers

Using git through the command line wasn't working, period. And yes, we know the difference between a tracked and untracked file guys, we aren't git retarded.

I eventually fired up the gui, and only through that were we able to properly remove the file. This has been an issue before, so I think it's a bug in Git-Scm's bash prompt.

EDIT:

Actually, I'm quite literally retarded. git commit <removed file>

http://ragefaces.s3.amazonaws.com/5041f6fdae7c704ffe000001/facepalm.png

like image 106
AlbertEngelB Avatar answered Aug 03 '26 09:08

AlbertEngelB



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!