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

  • Home
  • SEARCH
  • 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 8644283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:15:20+00:00 2026-06-12T12:15:20+00:00

I am not new to git but I am newer to github and still

  • 0

I am not new to git but I am newer to github and still a beginner with bash. I was trying to set some config stuff and ending up breaking git on my local machine. Here’s what I did following these instructions on github for password caching.

$ git config --global user.name 'myusername'
$ git config --global user.email 'myemail@email.com'
$ git credential-osxkeychain
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
$ curl -s -O http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
$ chmod u+x git-credential-osxkeychain
$ which git
/usr/bin/git
$ sudo mv git-credential-osxkeychain /usr/bin/git
$ git config --global credential.helper osxkeychain
^?^C

After this command git I received no response, just a new line which I eventually ctrl+c’ed out of. Now, whenever I do a git command in any repo, not just this one, the cursor just moves to a new line. I’m unable to push/pull/clone or do use of the commands I normally use.

I’ve tried reinstalling the latest version of git and still have the problem. What should I do?

Update:

I’ve tried unsetting credential.helper and uninstalling and reinstalling git. Still seeing the same behavior. I noticed that if I run just $ git the response is Usage: git credential-osxkeychain <get|store|erase>. At this point, I just want to delete credential-osxkeychain. Still unsuccessful.

As requested, the output of which -a git is:

$ which -a git
/usr/bin/git
/usr/local/git/bin/git
  • 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-06-12T12:15:21+00:00Added an answer on June 12, 2026 at 12:15 pm

    When you ran this command:

    $ sudo mv git-credential-osxkeychain /usr/bin/git
    

    You overwrote the existing git executable with the git-credential-osxkeychain executable. That script is only meant to be run as a sub-command of Git, not standalone.

    If you use Time Machine, you can try to restore the old /usr/bin/git from a backup. Otherwise, you’ll need to reinstall Git.


    Based on the comments below, it appears that /usr/bin/git is actually still git-credential-osxkeychain, probably because Git installed itself into /usr/local instead of /usr/bin.

    If you don’t care about the keychain behavior anymore, you can remove the current git executable altogether:

    $ sudo rm /usr/bin/git
    

    That may cause Git to start working for you immediately if /usr/local/git/bin is in your path. Or you could simply move it to /usr/local/git/bin/git-credential-osxkeychain:

    $ sudo mv /usr/bin/git /usr/local/git/bin/git-credential-osxkeychain
    

    which (again, assuming your path is correct) should allow you to use it as a credential helper like you originally wanted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Git, trying to get myself set up correctly. I have a
I'm not new to git, but I'm not a gitmaster. I have an existing
I'm not new to version control, but am new to version control through the
I am not new to Wordpress, but new to PHP. I have managed to
I'm not new to Rails or Rspec, but I'm new to making gems. When
I'm trying to deploy database project ( dbproj format, not new SSDT sqlproj )
I'm not exactly new to PHP but I haven't used MySQL that much, so
I created an account at github.com and im very new to git. I have
I'm really new to git and I've been trying to understand why git keeps
I'm new to the Git world but I realize that, since my programmer and

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.