Skip to content

Instantly share code, notes, and snippets.

@rubeniskov
Created October 25, 2023 08:00
Show Gist options
  • Save rubeniskov/a3500bce16d1a0cfbf23a8a4a4d05303 to your computer and use it in GitHub Desktop.
Save rubeniskov/a3500bce16d1a0cfbf23a8a4a4d05303 to your computer and use it in GitHub Desktop.
Git cheat commands
// remove empty commits
git filter-branch --prune-empty --tag-name-filter cat -- --all
// remove file from history
git filter-branch -f --index-filter 'git rm -rf --cached --ignore-unmatch packages/studio/public/meeting-room.glb' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment