Git - Client Installation

> Code - (Programming|Computer) Language > Code Versioning > Git

1 - Software

1.1 - Linux

yum install git

1.2 - Windows

Git for windows provides a bash and a gui.

It provides also all GNU core utility


2 - Configuration

2.1 - Identity

git config --global "Gerardnico"
git config --global


  • the global option tells Git to store the parameters on a global scope
  • Verify the identity parameters by querying them
git config --global --get-regexp user Gerardnico [email protected]

2.2 - Windows

:: Long path handling
git config --global core.longpaths true
:: No Windows EOL
git config --global core.autocrlf false

2.3 - Editor

  • Set the editor
git config --global core.editor emacs

My latptop:

git config --global core.editor edgit.bat

2.4 - credentials

Install the Credential Manager

See also cache: If you don’t want to type it every single time you push, you can set up a “credential cache”. The simplest is just to keep it in memory for a few minutes, which you can easily set up by running

git config --global credential.helper cache

2.5 - Alias

And optionally setup a few helpful aliases:

git config --global status
git config --global commit
git config --global alias.up pull --rebase

You can now use the following command:

# Status
git st
# Commit
git ci
# Pull --rebase
git up

2.6 - Rebase

Automatic rebase

git config branch.autosetuprebase local

3 - Documentation / Reference

code/version/git/install.txt · Last modified: 2019/07/15 10:13 by gerardnico