I'm using TortoiseGit on Windows, and I'm wondering how can I set it up so that it always adds the commit author and date.

In other terms, could these two checkboxes be on by default ?

enter image description here

I'm sort of new to git, so maybe someone will tell me that this is useless or not recommended.

有帮助吗?

解决方案

The commit and author date and name are always set whenever you commit (this is a Git requirement); they default to "now" and whatever you set your committer identity to.

Those checkboxes are only relevant if you:

  • want to set the commit date to anything but "now"
  • want to change the author identity of the commit when you amend the previous commit (usually, only the commit identity is set to yours, but the author identity is left alone).
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top