Slackbot
08/26/2023, 7:58 PMJacob Gold
08/26/2023, 8:34 PMTyler Laprade
08/26/2023, 8:35 PMgt branch track
3. Write my code
4. Submit my diffJacob Gold
08/26/2023, 8:41 PMB
|
A A'
|/
M
I'm assuming that your PR has your branch set as the head and your coworkers set as the base (this is what submit should have done)
If your branch is pointing at commit B and your coworker's is pointing at commit A, GitHub will vend us the diff from M to B because M is the merge base of A and B — "fully restacked" above was referring to having your branch based on the correct version of it's parentJacob Gold
08/26/2023, 8:41 PMTyler Laprade
08/26/2023, 8:42 PMA' when I did gt branch track on his branch?Jacob Gold
08/26/2023, 8:42 PMbranch track shouldn't do thatJacob Gold
08/26/2023, 8:42 PMJacob Gold
08/26/2023, 8:42 PMTyler Laprade
08/26/2023, 8:42 PMJacob Gold
08/26/2023, 8:43 PMgit log --oneline from your branch locally, does that commit show up in the history?Tyler Laprade
08/26/2023, 8:45 PMJacob Gold
08/26/2023, 8:45 PM91ccd2d there —Tyler Laprade
08/26/2023, 8:48 PMTyler Laprade
08/26/2023, 8:48 PMA' came from, but it does seem to be thereJacob Gold
08/26/2023, 8:50 PMgit checkout <coworkers branch>
git reset --hard 91ccd2d
git checkout <your branch>
git rebase --onto <coworkers branch> HEAD~
gt branch track
# select coworkers branch from the menuJacob Gold
08/26/2023, 8:52 PMTyler Laprade
08/26/2023, 8:53 PMJacob Gold
08/26/2023, 8:56 PM