How to squash all commits into one or reset history on master/main branch into one clean commit.
Commands:
git commit-tree HEAD^{tree} -m "custom message" - this will return a hash.
Copy and paste the hash into
git reset hash
🎵 Track Info
––––––––––––––––––––––––––––––
Skydive by Loxbeats / loxbeats
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Stream: http://bit.ly/2uUKEmd
Music promoted by Audio Library • Skydive – Loxbeats (No Copyright Music)
––––––––––––––––––––––––––––––