Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Always add commit author and date in TortoiseGit

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.

like image 866
Manu Avatar asked Jan 03 '14 11:01

Manu


People also ask

How do you commit in TortoiseGit?

Select any file and/or folders you want to commit, then TortoiseGit → Commit.... The commit dialog will show you every changed file, including added, deleted and unversioned files. If you don't want a changed file to be committed, just uncheck that file.

Does TortoiseGit include Git?

One prerequisite of TortoiseGit is that it requires an already installed (command line) Git client which provides a git.exe . Git for Windows is recommended (Cygwin and MSYS2 Git also work, see the section called “General Settings” for configuration.


1 Answers

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).
like image 144
Nevik Rehnel Avatar answered Oct 17 '22 00:10

Nevik Rehnel