为什么我不能通过hub-create在github上创建回购



我正试图通过在终端中运行hub create在Github上创建一个repo。我不会被提示在我的终端中输入任何github的电子邮件或密码。当我运行hub create时,会返回以下错误消息Error creating repository: Unauthorized (HTTP 401) Bad credential。我真的不知道该怎么办。有办法在本地更新我的密码吗?因为我相信问题可能是我在实际的github网站上更改了密码,现在它与我的mac上的密码不匹配。如有任何帮助,我们将不胜感激。

hub create [-poc] [-d DESCRIPTION] [-h HOMEPAGE] [[ORGANIZATION/]NAME]

示例:

[ repo created on GitHub ]
> git remote add -f origin git@github.com:USER/REPO.git
$ hub create sinatra/recipes
[ repo created in GitHub organization ]
> git remote add -f origin git@github.com:sinatra/recipes.git```

最新更新