Git (GitHub) commit at past date

后端 未结 2 460
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 04:54

I am working on a git project (hosted on GitHub) and using GitHub for Windows. Yesterday, I got a lot accomplished but GitHub for Windows bailed on me (says it cannot make a com

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 05:18

    git commit --allow-empty --date="Sat Nov 14 14:00 2015 +0100" -m '2 Dec commit'
    

    It will create empty commit with provided date

提交回复
热议问题