Some Git Tips useful for contributors and developers

Here we put some tips and cheatsheets, the full documentations are at Git Primer in Committer's Guide and Using Git in Handbook, which is recommended to read and editing is always welcomed.


There are two common places for git config, global (~/.gitconfig) and project wise (/path/to/the/project/.git/config).

You can set your preferred name and email for different projects:

        name = 
        email = 


To show both for author and committer information for checking the credit is given to the submitter, set fuller format for git log and git show

        pretty = fuller

rewriting history

To rewrite history, including separating out components from FreeBSD src, see the examples in git-filter.

GitTips (last edited 2021-06-17 02:55:15 by CySchubert)