In commit messages there is a rule which says:
“Lines starting with ‘#’ will be ignored”
Now I’m confused if these lines is ignored why we use them at all?
running “git log” only shows lines not started by #.and ignored lines is not shown.
Is there any command which shows the lines starting with ‘#’?
Well, when you write
git commityou normally have to edit a commit message.And as a reminder there are a lot of # lines, which will show you what will get committed (renamed, new, modified) and what will be ignored. I think that this feature is very useful – but I don’t want to see it in my commit message, later.
Example:
I think that’s the whole reason for the # lines.