IEM/user name Emilie.txt
2025-11-14 13:03:43 +01:00

39 lines
1 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

user name Emilie
email emilie.montaigu@gmail.com 2E88-136D
sur GitHub emiliemontaigu avec google
winget install --id GitHub.cli
winget install --id Git.Git
git --version
git config --global user.name "Emilie"
git config --global user.email "emilie.montaigu@gmail.com"
gh --version
gh auth login GitHub.com HTTPS
mkdir test_git
cd test_git
git init
echo "Hello Git" > test.txt
git add test.txt ou git add --all
git commit -m "Premier commit"
git log ou git log --oneline --all --graph HISTORIQUE
git show 9a3b5f2 Voir le contenu dun commit
git status Voir létat actuel
echo "Deuxième ligne" >> test.txt
git add test.txt
git commit -m "Ajout d'une deuxième ligne"
git log --oneline
git show 9a3b5f2 Voir une ancienne version sans la modifier
git checkout 9a3b5f2 Revenir temporairement à un commit (mode "visite du passé")
git switch master Revenir au présent
git reset --hard 9a3b5f2 Revenir définitivement à une ancienne version
Créer une branche
git branch nouvelle_fonction
git checkout nouvelle_fonction
ou git switch -c nouvelle_fonction