Skip to contentSkip to conversation

rename directory weirdness

DISCUSSION Bert Douglas 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

I am new user. Trying to understand git.

I renamed a directory.

$ mv dir1 dir2
$ git add dir2
$ git commit -a

It popped up my editor with long list of files that it recognized as 'renamed'. But one file it listed as 'copied' and further down as 'deleted'.

Why this one file out of thousands not recognized as 'renamed' ? Is this a sign of a problem ?

Thanks again for all help.

#1 lore raw
Quoted 9 lines · Bert Douglas
$ mv dir1 dir2
$ git add dir2
$ git commit -a

It popped up my editor with long list of files that it recognized as 'renamed'. But one file it listed as 'copied' and further down as 'deleted'.

Why this one file out of thousands not recognized as 'renamed' ? Is this a sign of a problem ?

Are the contents of the file in question identical to those of some other file in your directory tree? I've seen that happen too. There were some proposed improvements to address this last time it came up on the list, but I'm not sure if any of them actually made it into the code base.

-Steve