summitech / gitexplorer

Find the right git commands without digging through the web.
MIT License
1.84k stars 160 forks source link

Commands: Add new command for squashing commits #5

Closed mdwheele closed 5 years ago

mdwheele commented 5 years ago

Related: #2

Not entirely thrilled with the amount of supporting docs on this one and am open to advice on cutting it down.

Squash ➡️ commits in pull request into single commit

git rebase -i <branch name>
Make sure that latest commits are fetched from upstream.

git fetch upstream
git rebase -i upstream/master

Change "pick" to "squash" for the commits you wish to squash and save.

git push origin <topic branch> --force-with-lease
ade-fatimah commented 5 years ago

I think it's fine. The more explanatory, the better. Thanks a lot for your contribution. It's really appreciated.

mdwheele commented 5 years ago

No worries! Great tool!