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édente | ||
gestion_configuration:git:toc [2020/06/13 18:52] – [Identities] sgariepy | gestion_configuration:git:toc [2023/10/03 21:44] (Version actuelle) – [Outils] 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 [keyid] | + | $ gpg --armor --export [keyid] |
Delete key-pair: | Delete key-pair: | ||
- | $ gpg2 --delete-secret-key [keyid] | + | $ gpg --delete-secret-key [keyid] |
Ajout d'une identité (remplacer '' | Ajout d'une identité (remplacer '' | ||
- | |||
$ git config --global user.gitlab.name "Your Name" | $ git config --global user.gitlab.name "Your Name" | ||
$ git config --global user.gitlab.email " | $ git config --global user.gitlab.email " | ||
$ git config --global user.gitlab.signingkey 543166183AE7043A | $ git config --global user.gitlab.signingkey 543166183AE7043A | ||
- | |||
- | |||
Liste des identités de Git: | Liste des identités de Git: | ||
$ nano ~/ | $ nano ~/ | ||
- | |||
- | |||
Source: [[https:// | Source: [[https:// | ||
Ligne 253: | Ligne 277: | ||
+ | |||
+ | |||
+ | |||
+ | ====== 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=../ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====== Raccourcis Git ====== | ||
+ | |||
+ | Ce sont les raccourcis les plus utiles pour le [[https:// | ||
+ | |||
+ | * {{ : | ||
+ | * {{ : | ||
====== Outils ====== | ====== Outils ====== |
gestion_configuration/git/toc.1592067163.txt.gz · Dernière modification : 2022/02/02 00:43 (modification externe)