- Issue created by @nicxvan
- First commit to issue fork.
- Merge request !321Add command for checking out the branch if its not the first time → (Merged) created by B_man
- 🇺🇸United States nicxvan
Added a suggestion, I'm not sure if that is better or not if I'm being honest.
- 🇺🇸United States drumm NY, US
Where this gets tricky is you probably want to fetch changes. How you do that depends on what you have locally, what is upstream, and the preferred Git workflow for the project. We don’t want to get into providing suggestions for every situation, that is for documentation and learning Git. I think the most I’d want to suggest is
git fetch {issue fork remote}
. Anything additional would become too much UI trying to fit in a small space - the next step might begit reset …
if I know I don’t have anything local,git rebase …
if I do have local changes, orgit merge …
if that’s better for a specific project or situation. Maybe we’d want to add a note about remembering to get upstream changes into your local branch.For me, since the command is simply
git checkout {branch}
, I always type it out using shell tab-completion or copying the branch name from the issue or MR page. - 🇺🇸United States nicxvan
Honestly I think just checkout is enough.
Maybe a warning to follow other recommended steps, but as you said it's workflow specific.