27
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Git】コミット日時を最新化する

Last updated at Posted at 2020-01-30

コミット日時を現在日時に更新したい

以下のコマンドを実行することで、 AuthorDate と CommitDate に最新日時を設定してコミットしなおすことができます。

$ git commit --amend --date=now

rebase でコミット順を変更したり、 cherry-pick でコミットを引っこ抜いてきたあとコミット日時を更新したいときに使ってます。

27
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?