GIT: Есть ли способ установить учетные данные по умолчанию?

Я использую терминал для Mac и запускаю строку

git push origin master

Она каждый раз запрашивает у меня имя пользователя и пароль на github.com,
есть ли способ получить его автоматически использовать мои учетные данные?


Я продолжаю получать сообщение об ошибке

error: The requested URL returned error: 403 while accessing 
https://github.com/atheycreek/churchdeploy.git/info/refs

[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = https://github.com/atheycreek/churchdeploy.git

Поэтому я изменил его на

[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git:github.com/atheycreek/churchdeploy.git

, теперь я получаю ..

kirkstrobeck:churchdeploy kirkstrobeck$ git push origin master
ssh: Could not resolve hostname git: nodename nor servname provided, or not known
fatal: The remote end hung up unexpectedly

Я изменил его на

[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@github.com/atheycreek/churchdeploy.git

, и теперь я получаю ..

kirkstrobeck:churchdeploy kirkstrobeck$ git push origin master
fatal: 'git@github.com/atheycreek/churchdeploy.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
11
задан Kirk Strobeck 4 November 2011 в 19:45
поделиться