Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

Re: Deleting files

From: Shak <hidden>
Date: 2016-06-15 22:44:44

"Shak" [off-list ref] wrote in message 
news:g2r19e$s6e$1@ger.gmane.org...
Hi,

Are files supposed to be continually tracked after commiting after 
deleting them?

git status reports that files have been deleted as expected (they're not 
there anymore). I commit as wanted. I do some more work, but then git 
status still reports that the same files have been deleted. As such I have 
a historical list of "deleted" files that I may have been working on 
previously and had committed.

I have to run git rm to erase these entries, but I've no idea how that 
affects my history.

Shouldn't git add/commit remember that a file has been deleted previously?

On a related note, once I do git rm on one of these files, git status 
sometimes reports that these rm'd files have been renamed to a new one 
instead! What's going on? :(
To be clear on the last point, git seems to be incorrectly detecting that 
I've copied (sometimes to the same directory) and renamed files. What's the 
difference anyway? And is there anyway to override it's overzelaous 
assumptions?

Shak 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help