Outils pour utilisateurs

Outils du site


gestion_configuration:git:toc

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
gestion_configuration:git:toc [2020/06/09 16:22] – [Globale] sgariepygestion_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 ====
 +
 +
 +<code>
 +[user]
 + name = Stephane Gariepy
 + email = sgariepy@emailinexistant.ca
 +[credential]
 + helper = !'C:\\Users\\gariepy\\AppData\\Roaming\\GitCredStore\\git-credential-winstore.exe'
 +[core]
 + excludesfile = C:\\Users\\gariepy\\Documents\\gitignore_global.txt
 +[push]
 + default = simple
 +
 +[http]
 +    sslVerify = false
 +    sslCAinfo = /bin/curl-ca-bundle.crt
 +</code>
 +
 +
 +
 +
 +
 ====== Configurer ====== ====== Configurer ======
  
Ligne 85: Ligne 109:
  
 <code> <code>
-$ git config --global core.editor emacs+$ git config --global core.editor nano
 $ git config --global merge.tool vimdiff $ git config --global merge.tool vimdiff
 +</code>
 +
 +Rebase editor:
 +
 +<code>
 +$ npm i -g rebase-editor
 +$ git config --global sequence.editor rebase-editor
 </code> </code>
  
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 ''gitlab'' par ce qui est approprié): 
 + 
 +  $ git config --global user.gitlab.name "Your Name" 
 +  $ git config --global user.gitlab.email "gitlab@example.com" 
 +  $ git config --global user.gitlab.signingkey 543166183AE7043A 
 + 
 +Liste des identités de Git:
  
 +  $ nano ~/.gitconfig
  
 Source: [[https://www.micah.soy/posts/setting-up-git-identities/|Setting Up Git Identities]] Source: [[https://www.micah.soy/posts/setting-up-git-identities/|Setting Up Git Identities]]
Ligne 237: Ligne 277:
  
  
 +
 +
 +
 +====== GitHub ======
 +
 +Gestion des clés pour plusieurs comptes:
 +
 +  $ ssh-keygen -t rsa -C "your_email@youremail.com"
 +
 +
 +Par exemple, deux clés de créés:
 +
 +  ~/.ssh/id_rsa_activehacker
 +  ~/.ssh/id_rsa_jexchan
 +
 +
 +Ajouter :
 +
 +  $ ssh-add ~/.ssh/id_rsa_activehacker
 +  $ ssh-add ~/.ssh/id_rsa_jexchan
 +
 +
 +Source: [[https://gist.github.com/jexchan/2351996|Multiple SSH Keys settings for different github account]]
 +
 +
 +
 +====== Git Hooks ======
 +
 +
 +<code javascript>
 +{
 +    "name": "project-name",
 +    "version": "1.0.0",
 +    "dependencies": {
 +
 +    },
 +    "scripts": {
 +        "postinstall": ".\\hooks\\postinstall.bat"
 +    }
 +}
 +</code>
 +
 +
 +<code>
 +[core]
 +    hooksPath=../hooks/
 +</code>
 +
 +
 +
 +
 +
 +====== Raccourcis Git ======
 +
 +Ce sont les raccourcis les plus utiles pour le [[https://github.com/robbyrussell/oh-my-zsh/wiki/Plugin:git|plugin Git de Zsh]].
 +
 +  * {{ :gestion_configuration:git:git-shortcuts.pdf |Fichier PDF}}
 +  * {{ :gestion_configuration:git:git-shortcuts.zip |Fichier Publisher 2016 source}}, {{ :gestion_configuration:git:git-shortcuts_2.zip |Version 2}}
  
 ====== Outils ====== ====== Outils ======
gestion_configuration/git/toc.1591712543.txt.gz · Dernière modification : 2022/02/02 00:43 (modification externe)