feat(mr/checkout): Track by default without adding extra remotes
Description
This allows using git pull
and git push
out of the box, just like gh pr checkout
does.
Instead of adding a new remote, we will set the SSH URI directly for the branch so that we do not need to remove the remote manually once we no longer need it.
Related Issues
Resolves #956 (closed)
How has this been tested?
I ran the glab co 105
in a repo with glab
from this branch and verified that git pull
and git push
work.
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Jan Tojnar