I have a stack of commits: A on top of B, and B is...
# how-do-i
a
I have a stack of commits: A on top of B, and B is on top of main. If I want to make a small modification to A, and then push that change to remote (so that A is modified, no new commit), what's the right way to do that? I can make the change, run
gt add [file]
, and then run
gt modify
, and that works for the local copy. But how to I push this change to remote? I don't want to mess with remote's B or main branch at all. I could use git, but is there a way to do this with
gt
?
j
if you havent changed
B
,
submit
will not update
B
a
ok. I think I was getting an issue where there was a new conflict between B and main (after main got changed) -- but if I just do
gt submit
, should I able to just update A without dealing with this conflict? There was some restacking issue due to this conflict, but i wanted to update A without fixing the restacking conflict between B and main. With git, of course, I could just add commits to the A branch.
j
yeah, submitting A won't force you to deal with this conflict if you havent restacked B on main
👍 1
although you wont be able to merge them into main until you do resolve the conflict of course
👍 1
a
Ok, thanks! Maybe I didn't just type
gt submit
and typed some command with stack in it.