Herramientas de usuario

Herramientas del sitio


wiki2:git_pipelines

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
wiki2:git_pipelines [2021/04/23 18:29]
alfred [Merge a feature branch]
wiki2:git_pipelines [2022/03/13 11:35] (actual)
Línea 13: Línea 13:
  
 ===== How to... ===== ===== How to... =====
 +
 +
 +==== Configure an ssh key ====
 +
 +Generate an ssh key without passphrase or it will keep asking you for for it. You need to upload the public key to the server. Then, configure the host in your ssh config:
 +
 +<​code>​
 +Host bitbucket.org
 +IdentityFile ~/​.ssh/​keys/​gitkey
 +</​code>​
 +
 +This will allow you to do:
 +<​code>​
 +git clone git@bitbucket.org:​gfms/​shopifyapp.git
 +</​code>​
 +
 +ℹ️ If you want to debug, you can do:
 +<​code>​
 +ssh -vvv git@git.alfredgg.dev
 +</​code>​
 +==== This could be a good config ====
 +<​code>​
 +Host git.alfredgg.dev
 +Port 222
 +IdentityFile ~/​.ssh/​keys/​gitkey
 +User git
 +</​code>​
  
 ==== Commits ==== ==== Commits ====
  
-=== ... get a commit from another branch? ===+==== ... get a commit from another branch? ​====
 <​code>​ <​code>​
 git cherry-pick <​commit>​ git cherry-pick <​commit>​
 </​code>​ </​code>​
 +
  
 ==== Merges ==== ==== Merges ====
Línea 27: Línea 55:
 </​code>​ </​code>​
  
 +==== Reset ====
  
 +=== ... make a big reset? ===
 +Also cleaning new files
 +<​code>​
 +git clean -f -d 
 +git reset --hard
 +</​code>​
wiki2/git_pipelines.1619202544.txt.gz · Última modificación: 2021/04/23 19:29 (editor externo)