Make git ignore modification date changes if the content of the file stays the same

后端 未结 2 1343
栀梦
栀梦 2021-02-05 07:58

I have python scripts which generate and modify different xml-files. They work so that they open a file, create an ElementTree object based on it, try to modify object\'s conten

2条回答
  •  情歌与酒
    2021-02-05 08:45

    You can do git add for all affected files, after that it stops displaying them as modified in git status (and doesn't actually stage them for commit if there are no changes). At least that worked for me (I'm using git 2.8.1).

提交回复
热议问题