Skip to content

Instantly share code, notes, and snippets.

@gaeljw
Last active November 6, 2020 16:06
Show Gist options
  • Save gaeljw/07af46439df99fa751ab0c59382c9a67 to your computer and use it in GitHub Desktop.
Save gaeljw/07af46439df99fa751ab0c59382c9a67 to your computer and use it in GitHub Desktop.
Commandes Git utiles
# Archive
git archive --format zip --output nomDuZip.zip refGit # refGit = tag/branche...
# Reset author
git commit --amend --reset-author --no-edit
# Rebase onto (start exclusive, end inclusive)
git rebase --onto <where> <current-start> <current-end>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment