I'd even be cool if it made me commit each time, a...
# how-do-i
m
I'd even be cool if it made me commit each time, and each Stacked Diff contained multiple commits. But with so many force pushes it's very cluttered.
p
Hey Matt! It is possible for each diff/PR to contain multiple commits - by default,
gt modify
amends the most recent commit on the branch, but you can also use
gt modify --commit
to create an entirely new commit on the branch. in terms of cleaning up force pushes i don't currently have a great answer here...maybe @Jacob Gold can help?
j
If you have a push that doesn't need a force push, github won't treat it as one — so adding a commit the way Pranathi described will not show up as a force push on GitHub (unless you also rebased)
🔥 1
m
Oh great! I'll start doing
gt modify --commit
. I'm more used to the "one message per branch" workflow from g3 but adding a message to each diff will be better for my coworkers