Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6697737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:29:44+00:00 2026-05-26T06:29:44+00:00

.bashrc (on user account): export PATH=/usr/bin:$PATH How can I get Git to work on

  • 0

.bashrc (on user account):

export PATH=/usr/bin:$PATH

How can I get Git to work on accounts other than Root?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:29:45+00:00Added an answer on May 26, 2026 at 6:29 am

    As root, do which git:

    [ 08:45 root@host ~ ]# which git
    /usr/local/bin/git
    

    then take the path that is returned (/usr/local/bin/git, or whatever) and add it (except for the last /git part) to that line of the users .bashrc like so:

    [ 08:45 jon@host ~ ]$ vi ~/.bashrc
    
    export PATH=/usr/bin:$PATH:/usr/local/bin
    

    Then source the .bashrc file:

    [ 08:45 jon@host ~ ]$ source ~/.bashrc
    

    Also, make sure the file is executable by all (not just root) with chmod 755 so it looks like this:

    [ 08:45 jon@host ~ ]$ sudo chmod 755 /usr/local/bin/git
    [ 08:45 jon@host ~ ]$ ls -l /usr/local/bin/git
    -rwxr-xr-x@ 1 root  root   613B Jan 12 15:26 git
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to add the following line to ~/.bashrc: export PATH:/var/lib/gems/1.9.1/bin:$PATH But only if
I add this line to /home/{user}/.bashrc file: export JAVA_HOME=/usr/lib/jvm/java-6-openjdk but when I want to
How can I set variables that work everywhere? My .bashrc has: Questions='/Users/User/Stackoverflow/Questions' Address='My address'
My .bashrc looks something like this... export PERL5LIB=/tools/perl/Linux/${PLAT}/lib/perl5/5.10.0/${PLAT}-thread-multi export PERL5LIB=${PERL5LIB}:/tools/perl/Linux/${PLAT}/lib/perl5/5.10.0 function dev { export
I have the following escript: #!/usr/bin/env escript %%! -name test_starter@127.0.0.1 main(_) -> NodeName =
I added this line to my .bashrc (Ubuntu 9.10): export PYTHONPATH=/opt/google_appengine/ And then I
How can I add my own directory to PATH without editing my local profile's
Tried to set some aliases in my .bashrc file. This one... export alias umusic=/Volumes/180
I'm a pretty active command line user and I have shell accounts all over
In ~/.bashrc, I defined some aliases. But I cannot use them in other shell

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.