Git est un logiciel de gestion de versions décentralisé, créé en 2005 par Linus Torvalds, libre et gratuit.
Git init
git init
Git clone
git clone <https://repository-link>
Git branch
git branch <branch-name>
git push -u <remote> <branch-name>
git branch
#or
git branch --list
Git checkout
Pour changer de branche
git checkout <branch-name>
Git status
git status
Git add
git add <file>
git add -A
Git commit
git commit -m "commit message"
Git push
git push <remote> <branch-name>
# nouvelle branche
git push --set-upstream <remote> <branch-name>
Laisser un commentaire