gestion_configuration:git:toc
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
gestion_configuration:git:toc [2020/06/09 16:22] – [Globale] sgariepy | gestion_configuration:git:toc [2023/10/03 21:42] – [GitHub] sgariepy | ||
---|---|---|---|
Ligne 54: | Ligne 54: | ||
$ git config --global core.safecrlf false | $ git config --global core.safecrlf false | ||
+ | |||
+ | ==== Config sous Windows ==== | ||
+ | |||
+ | |||
+ | < | ||
+ | [user] | ||
+ | name = Stephane Gariepy | ||
+ | email = sgariepy@emailinexistant.ca | ||
+ | [credential] | ||
+ | helper = !' | ||
+ | [core] | ||
+ | excludesfile = C: | ||
+ | [push] | ||
+ | default = simple | ||
+ | |||
+ | [http] | ||
+ | sslVerify = false | ||
+ | sslCAinfo = / | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
====== Configurer ====== | ====== Configurer ====== | ||
Ligne 85: | Ligne 109: | ||
< | < | ||
- | $ git config --global core.editor | + | $ git config --global core.editor |
$ git config --global merge.tool vimdiff | $ git config --global merge.tool vimdiff | ||
+ | </ | ||
+ | |||
+ | Rebase editor: | ||
+ | |||
+ | < | ||
+ | $ npm i -g rebase-editor | ||
+ | $ git config --global sequence.editor rebase-editor | ||
</ | </ | ||
Ligne 94: | Ligne 125: | ||
Ajouter une identité (key-pair): | Ajouter une identité (key-pair): | ||
- | $ gpg2 --full-gen-key | + | $ gpg --full-gen-key |
Liste des key-pairs: | Liste des key-pairs: | ||
- | $ gpg2 --list-secret-keys --keyid-format LONG | + | $ gpg --list-secret-keys --keyid-format LONG |
Export public key: | Export public key: | ||
- | $ gpg2 --armor --export [serial] | + | $ gpg --armor --export [keyid] |
Delete key-pair: | Delete key-pair: | ||
- | $ gpg2 --delete-secret-key [serial] | + | $ gpg --delete-secret-key [keyid] |
+ | |||
+ | |||
+ | Ajout d'une identité (remplacer '' | ||
+ | |||
+ | $ git config --global user.gitlab.name "Your Name" | ||
+ | $ git config --global user.gitlab.email " | ||
+ | $ git config --global user.gitlab.signingkey 543166183AE7043A | ||
+ | |||
+ | Liste des identités de Git: | ||
+ | $ nano ~/ | ||
Source: [[https:// | Source: [[https:// | ||
Ligne 235: | Ligne 275: | ||
Source : SourceTree en français. | Source : SourceTree en français. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====== GitHub ====== | ||
+ | |||
+ | Gestion des clés pour plusieurs comptes: | ||
+ | |||
+ | $ ssh-keygen -t rsa -C " | ||
+ | |||
+ | |||
+ | Par exemple, deux clés de créés: | ||
+ | |||
+ | ~/ | ||
+ | ~/ | ||
+ | |||
+ | |||
+ | Ajouter : | ||
+ | |||
+ | $ ssh-add ~/ | ||
+ | $ ssh-add ~/ | ||
+ | |||
+ | |||
+ | Source: [[https:// | ||
+ | |||
+ | |||
+ | |||
+ | ====== Git Hooks ====== | ||
+ | |||
+ | |||
+ | <code javascript> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | |||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | < | ||
+ | [core] | ||
+ | hooksPath=../ | ||
+ | </ | ||
+ | |||
gestion_configuration/git/toc.txt · Dernière modification : 2023/10/03 21:44 de sgariepy