Ouvrir un terminal dans le dossier du projet (pour s'y rendre: cd /repertoire_de_mon_projet).
git init
git branchCela renvoie la liste des branches. La branche actuelle chargée est marquée d'un astérisque (*). La branche principale par défaut est appeléemaster.
git branch nom_de_la_branche
git checkout nom_de_la_branche
Localement:
-git branch -d nom_de_la_branche
Sur le repertoire distant origin (Github):
-git push origin --delete nom_de_la_branche
git remote add origin url_du_repo_distant
git remote -v
git status
git add nom_du_fichiergit add -Apour tout ajouter
git commit -m "message_du_commit"
git push origin master
