Outils pour utilisateurs

Outils du site


dev:git

Ceci est une ancienne révision du document !


GIT

Mettre à jour un repo Git

 git add *
 git commit  // git commit -amend = modifie repo existant
 git push

Gérer une branch

  • Créer une nouvelle branche ldap : git branch ldap
  • Changement de branche : git checkout laravel
  • Suppression d'une branche: git branch -d nom
  • Pousser une brnche distante
 git push gitlab ldap:ldap
  • gitlab/ldap paramétrée pour suivre la branche distante ldap
git branch --set-upstream-to=gitlab/ldap ldap

Créer un repo sur Gitlab

 cd existing_repo
 git config --global user.email "sb@services-lol.net"
 git commit --amend --author='Stephane Bestel <sb@services-lol.net>'
 git commit
 git remote add origin https://gitlab.com/vmusers/nom.git
 git branch -M main
 git push -uf origin main

à voir

 git clone git@gitlab.com:vmusers/easyap.git easyap-git
dev/git.1710254845.txt.gz · Dernière modification : 2024/03/12 14:47 de sbestel