Setting up git

July 16, 2017

To set a default user for a git repository, first create it:

$ git init

Next, set the user

$ git config user.name "Tim Sawyer" 
$ git config user.email "user@example.co.uk"

Tags: git config