There is a template file implemented for commit messages in order to keep changes tracking as clear as possible. This template file is configured as follows:
- In the root directory of the repository run the command
git config --global commit.template ~/.gitmessage.txt. - Now, every time you make a commit just run on the terminal
git commitand an editor with the message template will show up. - When the message is filled, press Cntl+O to save it.
- Press Cntl+X to close the editor.
In order to save usefull files (eg. .txt or .png) but keep them untracked, the .gitignore file has a directory called ignore.