detailed instructions are on CodeRefinery
basic setup (if you copy-paste the commands below, omit the ‘$’ symbol):
$ git config --global user.name "Your Name"
$ git config --global user.email yourname@example.com
$ git config --global core.editor your-editor
your-editor: vim, emacs, nano, any other of your choice (if you work on Windows, please check these instructions)
git config VARIABLE
; for instance to check what is the current user.name
used by Git run:$ git config user.name
$ git config --list
$ git config --list --show-origin
if you want to set up Git locally (for a particular repository), omit the --global
argument in git config
commands above
useful Git aliases, which we use in Git workshops:
$ git config --global alias.graph "log --all --graph --decorate --oneline