On 2 September 2011 17:57, Chris G cl@isbd.net wrote:
1 - When doing a 'git commit' where does one, by convention, put the comment? Does it go before all the comments, after them, or what? I know it doesn't actually matter at all but I'd still like to know.
The comment(s)? You mean the commit message?
If you mean the commit message, then the first line is used. You can optionally have additional lines after a blank line.
Lines starting with # are ignored.
2 - What is 'git diff' invoking as a pager, and why? E.g. see the following:-
You'd want to have a look at the 'core.pager' git config option. git help config has some info. pager.<cmd> option also.
It's not set here, nor is the environment variable, so it seems Git uses less as default.
- Srdjan