Metafor

ULiege - Aerospace & Mechanical Engineering

User Tools

Site Tools


devel:gitconfig

This is an old revision of the document!


Configurer git correctement

Sous windows

Dans un git bash, tapez les commandes:

git config --global user.name     Votre Nom
git config --global user.email    votre.email@ulg.ac.be
git config --global core.autocrlf true

La dernière commande permet d'eviter les warnings de conversion CRLF (fichiers locaux windows) ⇔ LF (repository au format Linux) pour les fichiers texte.

Sous linux

Dans un terminal, tapez les commandes:

git config --global user.name     Votre Nom
git config --global user.email    votre.email@ulg.ac.be
git config --global core.autocrlf input

La dernière commande permet d'eviter que les fichiers qui proviendraient d'un ZIP windows (avec un CRLF) ne soient considérés comme “modifiés”. Par contre, les fichiers qui seraient récupérés du repository auront bien une fin de ligne linux (LF).

devel/gitconfig.1484564398.txt.gz · Last modified: 2017/01/16 11:59 by boman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki