문제

When I try to push the repository from a MacOS Shell I get this error

fatal: remote error: Invalid username/password. You may need to use your generated googlecode.com password; see https://code.google.com/hosting/settings

How should I provide it with the right password?

도움이 되었습니까?

해결책

It should pick up your credentials in your ~/.netrc file, which should include:

machine code.google.com 
login your_CodeGoogleCom_Login 
password your_CodeGoogle_password

(and chmod go= ~/.netrc)

Make sure to do:

git config --global user.name "google.username"
git config --global user.email "google.username@gmail.com"
git remote set-url origin https://code.google.com/p/projectname

(avoid using an url like https://google.username@code.google.com/p/projectname when you are using a .netrc file for credentials)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top