Outils pour utilisateurs

Outils du site


dev:git

Différences

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

Lien vers cette vue comparative

Prochaine révision
Révision précédente
dev:git [2024/03/12 14:46] – créée sbesteldev:git [2024/03/12 14:54] (Version actuelle) – [GIT] sbestel
Ligne 1: Ligne 1:
 ====== GIT ====== ====== GIT ======
  
 +  * générique : 
 +   git status 
 +   git log 
 +   git clean-f 
 +   git show
 ===== Mettre à jour un repo Git ===== ===== Mettre à jour un repo Git =====
  
Ligne 12: Ligne 16:
  
   * Créer une nouvelle branche ldap : git branch ldap   * Créer une nouvelle branche ldap : git branch ldap
-  * changement de branche : git checkout laravel +  * Changement de branche : git checkout laravel 
-  * suppression d'une branche: git branch -d nom+  * Suppression d'une branche: git branch -d nom
   * Pousser une brnche distante   * Pousser une brnche distante
  
    git push gitlab ldap:ldap    git push gitlab ldap:ldap
  
-  * Liste à pucegitlab/ldap paramétrée pour suivre la branche distante ldap+  * gitlab/ldap paramétrée pour suivre la branche distante ldap
  
   git branch --set-upstream-to=gitlab/ldap ldap   git branch --set-upstream-to=gitlab/ldap ldap
Ligne 31: Ligne 35:
    git branch -M main    git branch -M main
    git push -uf origin main    git push -uf origin main
 +   
 +   git remote -v show
 +   git fetch gitlab
 +   git push
  
-===== à voir =====+===== config =====
  
 +   nano .git/config
 +
 +===== à voir =====
  
 +   git clone git@gitlab.com:vmusers/easyap.git easyap-git
 +   git config pull.rebase false
 +   git switch --create main
 +   git rebase -i --root
 +   git remote add origin https://gitlab.com/vmusers/easyap-la.git
 +   
dev/git.1710254764.txt.gz · Dernière modification : 2024/03/12 14:46 de sbestel