Memo Commandes GIT

Gestion contenu

# Add a specific file
git add filename
# Add all changed files in current directory
git add .
# Add commit message directly in commit command
git commit -m "New commit"
# Open editor to write commit message
git commit
push origin branch_name
# Push to "main" branch
push origin main

Gestions des branches

git branch
git checkout <branch_name>
git checkout -b <new_branch>

Liens

https://wiki-tech.io/Cheatsheet/git


Revision #2
Created 31 January 2025 09:06:31 by Lauris_Adm
Updated 11 March 2025 10:48:37 by Lauris_Adm