Last active
June 8, 2026 03:36
-
-
Save hamjin/6d9efa2c7c7c47b05654bc8f4673d647 to your computer and use it in GitHub Desktop.
Git commands
This file contains hidden or 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
| #!/usr/bin/env bash | |
| git reflog expire --expire=now --expire-unreachable=now --rewrite --updateref --stale-fix --all --verbose | |
| git prune -v --expire now | |
| git rebase -i HEAD~1 --exec 'GIT_COMMITTER_DATE="$(date -R)" git commit --amend --date="$(date -R)" --no-edit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment