Renaming in Git and Mercurial: Accuracy and automaticity

前端 未结 2 1318
没有蜡笔的小新
没有蜡笔的小新 2021-01-12 20:26

I only have a few days of experience with Git and Mercurial, and I don\'t have much programming experiences.

In the past few days, I read many posts that comparing t

2条回答
  •  孤独总比滥情好
    2021-01-12 20:53

    Here you can see the difference explained, but mostly you are right. Mercurial has rename and mv commands that do "real" renaming, while Git's mv just does rm and add. Also seems like Mercurial can mimic Git behavior and guess your renames, quite nice feature. From experience Git's rename detection algorithm makes wrong decisions a lot - especially if you copy a file and alter the two copies a little - most of the time it will be wrong.

提交回复
热议问题