Skip to content

Instantly share code, notes, and snippets.

@eloisetaylor5693
Created November 20, 2023 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eloisetaylor5693/302e9d64028293297f0081bf73f9891a to your computer and use it in GitHub Desktop.
Save eloisetaylor5693/302e9d64028293297f0081bf73f9891a to your computer and use it in GitHub Desktop.
Git cheatsheet

Empty commit git commit --allow-empty -m "trigger ci"

Git fixup

git ll
git commit --fixup <commit sha>

// n = how many commits ago the commit you want to fixup is
// i = interractive rebase
git rebase HEAD~n -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment