====== GIT ====== * générique : git status git log git clean-f git show ===== 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 ' git commit git remote add origin https://gitlab.com/vmusers/nom.git git branch -M main git push -uf origin main git remote -v show git fetch gitlab git push ===== 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