Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git: 'credential-' is not a git command after installing SourceTree

I use git right off the terminal on my Macbook.

I recently install SourceTree as a GUI tool for git. But right after that, I realize SourceTree changed my local git repository configuration and my command git push, git pull or git fetch have it's behaviour changed.

Now I get this output for those commands.

git: 'credential-' is not a git command. See 'git --help'.

The most similar command is
    credential

Can anyone help me with that? My repo is hosted on GitHub and right after this strange output the command runs correctly.

like image 685
Leonardo Saragiotto Avatar asked Oct 23 '25 10:10

Leonardo Saragiotto


1 Answers

Issue get resolved by git config --remove-section credential

Thanks!

like image 164
rahul mishra Avatar answered Oct 26 '25 02:10

rahul mishra