Update git commit author date when amending

后端 未结 5 1511
北恋
北恋 2020-12-12 08:48

I found myself amending my commits quite often. I don\'t stash so much because I tend to forget I did so, especially when I want to save what I did before I lea

5条回答
  •  半阙折子戏
    2020-12-12 09:41

    I created this npm package if someone still looking for a simple way to change dates of multiple commits.

    https://github.com/bitriddler/git-change-date

    Usage:

    npm install -g git-change-date
    cd [your-directory]
    git-change-date
    

提交回复
热议问题