Table des matières

GIT

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

 git push gitlab ldap: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
 
 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