Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you `git mv`, then immediately commit (without making any additional changes), I think it will recognize it as a move 100% of the time (i.e., will not use its "similarity index"). I'm not certain of that though.


That's correct, but this also applies to "move file" + "git add". Just make sure to commit the "move" and "change" parts separately.


Sure, but if you mv and git add without making any additional changes and then immediately commit, it'll also get picked up as a move 100% of the time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: