Last active
June 8, 2024 14:51
-
-
Save damianpumar/d0c6b886e2dad730f159f6229e33a123 to your computer and use it in GitHub Desktop.
Clear all commits into one
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
HASH=$(git commit-tree HEAD^{tree} -m "๐ First commit") | |
git reset $HASH | |
echo "๐ First commit has been cleared" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment