This message was deleted.
# how-do-i
s
This message was deleted.
p
Hey Travis! We're going to make a video and some docs on this soon (it's a common question)
gt sync
is roughly equivalent to doing a
git pull
(with the added benefit of restacking your PRs if needed) Generally you do this when there have been new commits to main and you want to make sure your branches are rebased on the latest changes
gt get
is used when you want to bring an "external" branch into your working space, if you're collaborating with a coworker on a stack for example.
gt sync
would not get this branch for you, but
gt get
would. If a coworker commits changes to a branch that you're working on, you would also use
gt get
in this case (I believe committing suggested changes works similarly) Let me know if that makes sense (and also cc @Alyssa Baum let me know if I missed anything)
➕ 1
👀 1
👍 1
t
Is there a way to run gt sync for only the stack I'm currently on? Sometimes I only want to bring a specific stack up to date and I need to manually pull master and restack the branch im on
a
There is not, however you can do
gt sync -no-restack
followed by
gt restack --only
to sync everything but only restack your current stack
t
oh nice didn't know about
--no-restack
, exactly what I'm looking for! thanks!