Incorrect Git author date after commit from Idea

已回答

I have some strange situation all  my Git commits which were made from Idea have the same GIT_AUTHOR_DATE - 05/02/2018

Git commit from console has correct current GIT_AUTHOR_DATE date.

So it's definitely not related with environment variable GIT_AUTHOR_DATE.

How can I investigate this issue? For example canb i enable debug of Idea git console commands.

1

Most likely the specific date is used because you are committing from a changelist that has metadata associated with it (author and date).
Such changelsits are used to commit cherry-picks and patches, and are marked with the (i) sign in the local changes.

To commit with actual date - create new changelist and commit from it.

See also - https://youtrack.jetbrains.com/issue/IDEA-186415

0

请先登录再写评论。