Git

Sort Branches by Date

git for-each-ref --sort='-committerdate' --format='%(committerdate:short) %(refname:short)' refs/heads/ refs/remotes/

Squash Commits before the given Date

Download the script, and run the below commands:

chmod +x git_squash_commits_before_given_date.sh
./git_squash_commits_before_given_date.sh "2023-05-25" #Update date

Last updated