Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Always use specified option when rebasing

I recently discovered the --committer-date-is-author-date option for git rebase. I’d like to make this the global default whenever I rebase. Is there a way to modify .gitconfig so that this option is always used?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

An option would be to create an alias of the command that includes the option.

https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases

git config global --alias.re 'rebase --committer-date-is-author-date'

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading