.bashrc (on user account):
export PATH=/usr/bin:$PATH
How can I get Git to work on accounts other than Root?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As
root, dowhich git:then take the path that is returned (
/usr/local/bin/git, or whatever) and add it (except for the last/gitpart) to that line of the users.bashrclike so:Then
sourcethe.bashrcfile:Also, make sure the file is executable by all (not just
root) withchmod 755so it looks like this: