gitless
gitless copied to clipboard
gl squash or collapse/combine etc
I find myself the type to create many commits in a branch, pushing frequently. When I'm finished I like to run git rebase -i HEAD~20
or something like that to squash all of the intermediate commits into 1 before sending a pull request.
gl could have a squash
, collapse
, or combine
feature that helps with this.
Note
When the history on a remote has diverged from the local repo you'll need to git push -f
to reset the branch history on the remote or target a new remote branch after the squash then delete the old one later.