Otherwise: `git status` to figure out what ref you are at. I assume you were working on a branch inside the repo and ended up inside a rebase or otherwise detached HEAD state.
Dave's solution is the quick fix, so use that if you need to.
Otherwise: `git status` to figure out what ref you are at. I assume you were working on a branch inside the repo and ended up inside a rebase or otherwise detached HEAD state.
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/t9dLLVwsMlM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-j
The main problem seems to be related to go get believe me or not.
-j
-j
On Thu, Oct 13, 2016 at 3:59 AM Tong Sun wrote:
> You can blame git, but I think "go get" can do better to avoid the problem in the first place.'go get' just executes `git clone` or `git pull`. What would you suggest 'go get' can do to "do better"?
-j
Sure, in 90% (or more) of bare (that is, "central") Git repos found in
the wild, HEAD points at refs/heads/master, and that's why `git clone`
creates a local branch "master" for you pointing to the same commit
"origin/master" point at, but still the name "master" is not at all
special when cloning. When someone told you to do `git checkout master`
it was actually a conscious oversimplification to avoid explaining the
stuff I have just explaining.
Changing the subject of this discussion a bit, I think that embedding
more magic into `go get` is wrong...