You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm preparing to teach these lessons at my work and got a question from a coworker that I realized doesn't seem to be covered by these lessons. How can someone get a copy of a remote branch that didn't start on their local machine, especially one that wasn't there when they cloned and/or last pulled from the remote repository.
The correct and simplest solution for any modern version of git where the repository has multiple remotes is:
There is shorter versions of this if you only have one remote and don't already have a branch named <branch> locally, but I think what I have above is more useful in the long run.
Thoughts?
The text was updated successfully, but these errors were encountered:
I'm going to walk through the lessons again this afternoon/tonight to make sure I know what I'm talking about. I'll have a better idea where this could fit. My best guess is somewhere in the countries portion but I'm not sure what the purpose of it would be except to look at someone else's work. It could easily result in cognitive overload if it was about resolving merge conflicts with someone's branches.
Oh, maybe someone has a typo in their branch and you want to fix it...eh, maybe not. I'll think about it tonight.
I think maybe you are right about cognitive overload. They are already a bit overloaded and we are short on time. I actually never usually get to the part where you update the PR in the lessons already. Maybe it is something to put in an aside/call out or have an extra lesson for if people want to explore on their own?
I'm preparing to teach these lessons at my work and got a question from a coworker that I realized doesn't seem to be covered by these lessons. How can someone get a copy of a remote branch that didn't start on their local machine, especially one that wasn't there when they cloned and/or last pulled from the remote repository.
The correct and simplest solution for any modern version of git where the repository has multiple remotes is:
There is shorter versions of this if you only have one remote and don't already have a branch named
<branch>
locally, but I think what I have above is more useful in the long run.Thoughts?
The text was updated successfully, but these errors were encountered: