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

How to change Github's default commit messages?

I’ve been wondering is it possible to change the message that appears in the input field when you commit on Github. Refer to the picture below:

enter image description here

I like my commits to be as descriptive as possible and enjoyable to read. I want Github to suggest 📝 Create README instead of Create README.md.

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

When I tried to search for the solution the ‘google search’ shows irrelevant answers. Is it somehow possible?

Note: This does not answer my question.

>Solution :

If you can do this at all, it certainly won’t be easy. The GitHub web interface is proprietary software that does not provide a setting for you to make this change. You might be able to create a UserScript in your browser using TamperMonkey (or similar) that detects the fields on the page and modifies them, but you’ll have to write all the logic and then keep changing it whenever GitHub makes changes to their code.

Note that your suggested commit message that contains emoji is not actually more descriptive than their default message, in fact many people will find it less readable.

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