Git best practices

5th of October, 2017 in guide

How to configure and use git

  1. Configuration
  2. Branch
  3. Force the use of https instead of ssl (proxy way of life)
  4. Sources

Configuration

1
2
git config --global user.name "Mona Lisa"
git config --global user.email "mlisa@de-vinci.it"

Branch

1
git checkout -b <branch_name> <branch_to_derive_from>

Force the use of https instead of ssl (proxy way of life)

1
2
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://

Sources

A successful Git branching model
Vincent Driessen - http://nvie.com/about/

git - the simple guide
Roger Dudler - twitter

 
Octocat logo from github.com/logos