devel:gitconfig
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:gitconfig [2017/01/16 11:59] – [Sous linux] boman | devel:gitconfig [2024/05/03 14:10] (current) – [Utiliser git] boman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Utiliser git ====== | ||
+ | |||
+ | Ci dessous, la dernière version de la présentation git de Romain: | ||
+ | * {{: | ||
+ | |||
+ | |||
====== Configurer git correctement ====== | ====== Configurer git correctement ====== | ||
+ | |||
+ | Git stocke sa config dans le fichier '' | ||
===== Sous windows ===== | ===== Sous windows ===== | ||
Line 5: | Line 13: | ||
Dans un git bash, tapez les commandes: | Dans un git bash, tapez les commandes: | ||
git config --global user.name | git config --global user.name | ||
- | git config --global user.email | + | git config --global user.email |
git config --global core.autocrlf true | git config --global core.autocrlf true | ||
La dernière commande permet d' | La dernière commande permet d' | ||
+ | |||
+ | Un autre option utile sous windows est '' | ||
+ | La variable '' | ||
+ | git config core.filemode false | ||
+ | |||
===== Sous linux ===== | ===== Sous linux ===== | ||
Line 14: | Line 27: | ||
Dans un terminal, tapez les commandes: | Dans un terminal, tapez les commandes: | ||
git config --global user.name | git config --global user.name | ||
- | git config --global user.email | + | git config --global user.email |
git config --global core.autocrlf input | git config --global core.autocrlf input | ||
La dernière commande permet d' | La dernière commande permet d' |
devel/gitconfig.1484564398.txt.gz · Last modified: 2017/01/16 11:59 by boman