gitless icon indicating copy to clipboard operation
gitless copied to clipboard

gl squash or collapse/combine etc

Open goldstar611 opened this issue 3 years ago • 0 comments

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.

goldstar611 avatar Feb 23 '22 22:02 goldstar611