[git-users] Is there a way to find the parent branch(from which branch HEAD is detached) for detached Head ?

2018-04-10 Thread Suresh Chatti


Is there a way to find the parent branch for detached head?

 

commands like "git log -n 1 --pretty=%d HEAD", "git show-n 1 --pretty=%d 
HEAD" are failing when multiple branch HEADs pointing to same commit. I 
want to know does git maintain any parent branch information when HEAD is 
detached so that we can know from which branch it is detached.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] git: command not found

2011-04-03 Thread suresh
Hi

I am able to use, git --version, git init, git commit -a successfully
from my ubuntu 10.04 running git version 1.7.0.4. But when i give


git config core.editor vi

I get an error message, git: command not found.

What is happening?

suresh

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: git: command not found

2011-04-03 Thread suresh
as an update,
now all the following commands work in the same xterm where it was not 
working earlier, a few hours ago. I know it sounds stupid but thats what i 
see.
git config  core.editor vim
git config  core.editor vi
git config --global core.editor vi
git config --global core.editor vim

so i am thoroughly confused. what is happening?
thanks
suresh

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.