Table of Contents

Git

Réécrire une pile de commits

git rebase -i <commit_de_depart>
git push --force-with-lease

Utiliser `–force-with-lease` plutôt que `–force` pour éviter d'écraser des changements distants inattendus.

Signer les commits

git config user.signingkey vlp@fdn.fr
git commit -S -m "update"
git config --global commit.gpgsign true

Ajouter un second dépôt distant

git remote add second_repo git@git_provider.com:vlp/my-project.git
git remote set-url --add --push origin git@git_provider.com:vlp/my-project.git