Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git command for Program FIles (x86)

Tags:

git

How to write command in git bash for Program Files (x86)? It is giving me error below

user@PC /C
$ ./git-credential-winstore -i C:\Program Files (x86)\Git\bin\
sh.exe": syntax error near unexpected token `('

Can anyone tell me how to write the path for this?

like image 722
Code Lover Avatar asked Dec 02 '22 21:12

Code Lover


1 Answers

I was getting a similar error when trying to push or pull my git branch with GitExtensions installed and found this post which describes how fix the problem. The solution was to go to my .gitconfig file at C:\Users\[user name]\.gitconfig and change the line:

helper = !\\\"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\\\"

to:

helper = !\"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\"

I know my problem was a bit different than the OP's problem, but the error message is the same so I thought I would post my answer here for others who find this post with my problem.

like image 200
deadlydog Avatar answered Dec 11 '22 17:12

deadlydog