Min Yang
03/09/2023, 1:11 AMorigin and a remote repo as remote. How do I make graphite create a PR against the remote repo instead of the origin? I tried gt repo remote -s remote but got
ERROR: Write access to repository not granted.
fatal: Could not read from remote repository.Jacob Gold
03/09/2023, 1:16 AMCameron Smith
03/29/2023, 12:41 AMDenis Grebennicov
05/16/2023, 9:39 AMCameron Smith
05/17/2023, 8:15 PMThis would be extremely helpful. For now I can get away with something like the following, but I have to cycle through each PR manually. Of course this defeats the value prop to an extent.
# complete work on a branch and interactively rebase to desired commit order
# assume gh cli is set to relevant upstream
gt bsp # interactively set branch/pr breakpoints
gt ss # interactively configure draft PRs on your fork to be closed without merge
gh pr create -t "title" -b "body" -a "@me" -l "label" -d -r reviewername -m "milestone"
gh pr ready
# ...
gh pr merge -s # or maybe someone else does
# prepare and submit next pr up the stack
git fetch upstream main:main && gt rs -r && gt ss # agree to remove merged branch
gt bb # or otherwise checkout the next branch in the stack from which to submit a PR
gh pr create -t "title" -b "body" -a "@me" -l "label" -d -r reviewername -m "milestone"
gh pr ready
# ...
gh pr merge -s
# ...
# check that PRs and branches on your fork were successfully closed/removed