[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.



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

2011-04-03 Thread David Aguilar
On Apr 3, 2011, at 5:42 PM, suresh suresh.amritap...@gmail.com wrote:

 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

What happens if you do this?:

git config --global core.editor vim

Do you have an executable called git-config anywhere in your path? (you 
shouldn't). Have you always used ubuntu's build or did you ever build your own?
-- 
David

-- 
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.