When git rebasing a branch, you can squash commits by changing pick
to squash
on each line you want to squash. You can also change it to s
instead as a shorthand way.
pick 4306fab7 add stuff
pick d1e9645a test ci
s 5d0458e6 test ci
s 9cdb9984 test ci
there has to be a way to shortcut the line changes. For example, if you had a branch with 50 commits you wanted to squash and rebase, you would have to go by-hand and change pick
to s
for each line, which takes forever.
Is there a cmd+option+s shortcut that changes it for you so you just have to do that command on each line?