$ mkdir projet.git $ cd projet.git $ git --bare init
$ cd cartographie $ git init $ git add . $ git commit -m 'premiere validation' $ git remote add origin root@adam.univ-lemans.fr:/home/prn.git $ git push origin master
git clone root@adam.univ-lemans.fr:/home/prn.git/
ATTENTION: cette commande crée le repertoire “prn”; il faut se placer au dessus
Se mettre dans le bon répertoire $ git add . $ git commit -m 'Mon commit' $ git push origin master
Se mettre dans le bon répertoire (home : /home/aducret/Documents) $ git pull origin master
$ git checkout
Crer une branche :
git branch testing
Basculer sur la nouvelle branche testing
git checkout testing
Pour créer et basculer
git checkout -b testing
Pour reporter les changement fait dans testing dans la branche master
$ git checkout master $ git merge testing
Effacer la branche testing: git branch -d testing