Created
October 25, 2023 08:00
-
-
Save rubeniskov/a3500bce16d1a0cfbf23a8a4a4d05303 to your computer and use it in GitHub Desktop.
Git cheat commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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