void.pointer
void.pointer

Reputation: 26365

git detecting move when it shouldn't

I've physically deleted a file and created a new one somewhere else with a new name. I do not want the history from the old file to carry over to the new file. I want the old file to be seen as deleted and the other file to be seen as new.

If git picks these up as a move when I stage the two files, how can I tell it to not automatically detect moves for just those files?

I'm using git 1.9.2 on Windows.

Upvotes: 1

Views: 64

Answers (1)

jeremy
jeremy

Reputation: 4314

On a move operation git won't follow the history unless you use the --follow flag. As far as Git is concerned, since its mostly the same contents, it is a "move".

There is a good summary of what a "move" is here

Upvotes: 1

Related Questions