Git

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>

https://git-scm.com/

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.