Configurer
sudo apt install git
git config --global user.name "Léa Martin"
git config --global user.email "lea@exemple.fr"
git config --global init.defaultBranch main
git config --global core.editor nano
git config --global pull.rebase false
git config --list --global
Clé SSH pour GitHub
ssh-keygen -t ed25519 -C "lea@exemple.fr"
cat ~/.ssh/id_ed25519.pub # à coller dans GitHub › Settings › SSH and GPG keys
ssh -T git@github.com
git clone git@github.com:lea-martin/projet.gitAlternative en HTTPS : gh auth login (GitHub CLI). Pour masquer votre e-mail : adresse …@users.noreply.github.com. Premiers pas : les commandes Git de base.