LoginSignup
0
0

More than 3 years have passed since last update.

チェリーピックしたコミットのCommitDateをAuthorDateに合わせる

Last updated at Posted at 2020-06-09

チェリーピックすると、CommitDate はチェリーピックした日時になる。
ブランチの作り直しなどで CommitDate を AuthorDate にしたいときは、次のようにする。

手順

チェリーピックを AuthorDate の順に行う。

都度、次のコマンドを実行。

$ git rebase HEAD~ --committer-date-is-author-date

意図通りにできているかは $ git log --pretty=fuller で確認する。

0
0
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
0
0