Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Not an expert, but I think checkout just loads a single commit, you gotta fetch the branch first and/or use git switch
-
origin/develop
origin is the *remote*… not the local branch.
git checkout -b branch_name remote_branch
Take a look at git switch:
https://git-scm.com/docs/git-switch -
kamen69163yWasn't git switch one of those things they added subsequently after realising how confusing git checkout can be? I think there was even a cool blog post about it somewhere, but I can't find it.
Related Rants
git checkout origin/develop
git status
You are not currently on a branch.
Only computers and nerds can argue like that.
Expected behavior: I'm on branch develop, but nevermind, let's overcomplicate everything.
rant
git
nerdlogic