Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-branch commitish doesn't work #3

Closed
sunaku opened this issue Oct 19, 2011 · 3 comments
Closed

non-branch commitish doesn't work #3

sunaku opened this issue Oct 19, 2011 · 3 comments

Comments

@sunaku
Copy link

sunaku commented Oct 19, 2011

The following advertised example doesn't work:

(:70c2952): not on any branch; parent commit has sha1 70c2952

Observe:

(master|✔)~/.zsh-git-prompt> git checkout HEAD\^
Note: checking out 'HEAD^'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at d8cc0aa... more readable presentation of the output
~/.zsh-git-prompt> 

I'm using this repo at c6032a6 with zsh 4.3.12 (x86_64-unknown-linux-gnu) and Python 2.7.2. Thanks.

@olivierverdier
Copy link
Owner

What's your version of git? I can't reproduce your error with git v 1.7.5.4.

@sunaku
Copy link
Author

sunaku commented Oct 19, 2011

git version 1.7.7

@olivierverdier
Copy link
Owner

I can't reproduce that error with git 1.7.9.4. I'm closing this issue. Reopen if the problem persists, or if you understand better when that problem happens.

asilata pushed a commit to asilata/zsh-git-prompt that referenced this issue Jul 25, 2018
- Simple suffix to branch name. Will appear if detached is local too.
- Travis locked to master build.
biggerfisch pushed a commit to biggerfisch/zsh-git-prompt that referenced this issue Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants