Skip to main content
9 events
when toggle format what by license comment
Oct 28, 2020 at 19:57 comment added SMBiggs The hint about omitting "origin/" worked like a charm. Thanks!
Aug 14, 2017 at 7:02 comment added garg10may by default it looks in origin, so when you give origin/branchname, it looks for origin/origin/branchname to tell that first one is remote name you use -b, if u don't it creates a anonymous branch which is detached. Similarly for checking out from a different remote you would have to mention -b parameter otherwise git doesn't have a way to know it is from a new remote, it will look for origin/remote/branchname.
Jul 13, 2017 at 18:25 comment added Armfoot I saw in this other answer that git checkout -b Feature/f1234 <=> git branch Feature/f1234 and git checkout Feature/f1234.
Mar 15, 2017 at 15:07 comment added Kilmazing I agree but it does provide the solution i was looking for. Thanks!!
May 12, 2016 at 18:25 comment added Goose This is almost a great answer, but fails to explain why you got into a detached head state.
S Mar 16, 2016 at 10:02 history suggested Atais CC BY-SA 3.0
present other solution
Mar 16, 2016 at 9:45 review Suggested edits
S Mar 16, 2016 at 10:02
Mar 5, 2016 at 8:30 history edited Adriano CC BY-SA 3.0
code formatting
Apr 23, 2015 at 15:43 history answered Owen CC BY-SA 3.0