Max OS High Sierra上的持久性osxkeychain错误

时间:2018-06-13 02:19:03

标签: github macos-high-sierra

我正在尝试将我在本地目录中正确创建的文件“HelloWorlds.md”推送到GitHub存储库。我在MacOS High Sierra上使用https,尽管我努力在Git中缓存我的Github密码,但我一直收到“无效的用户名和密码”错误。以下是我的代码:

ChrisC-MacBook-Pro:datasciencecoursera chriscalitz$ ls
HelloWorld.md   README.md   https:
ChrisC-MacBook-Pro:datasciencecoursera chriscalitz$ rm https:
rm: https:: is a directory
ChrisC-MacBook-Pro:datasciencecoursera chriscalitz$ git push
git: 'credential-oskeychain' is not a git command. See 'git --help'.

The most similar command is
    credential-osxkeychain
Username for 'https://github.com': fccalitz
Password for 'https://fccalitz@github.com': 
git: 'credential-oskeychain' is not a git command. See 'git --help'.

The most similar command is
    credential-osxkeychain
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/fccalitz/datasciencecoursera.git/'
ChrisC-MacBook-Pro:datasciencecoursera chriscalitz$ git credential-osxkeychain
usage: git credential-osxkeychain <get|store|erase>
ChrisC-MacBook-Pro:datasciencecoursera chriscalitz$ store
-bash: store: command not found
ChrisC-MacBook-Pro:datasciencecoursera chriscalitz$ git credential-osxkeychain <store>
ChrisC-MacBook-Pro:datasciencecoursera chriscalitz$ git config--global credential.helper osxkeychain
git: 'config--global' is not a git command. See 'git --help'.
ChrisC-MacBook-Pro:datasciencecoursera chriscalitz$ 

成功将.md文件推送到Github存储库需要什么代码?谢谢!

0 个答案:

没有答案