在初始化仓库之前,要确认ssh key是否正确 ssh -T git@github.com 正确的结果如下 Hi username! You've successfully authenticated, but GitHub does not provide shell access. 在你的github上创建一个远程的respository ps:不要勾选Initilalize this repository ...,因为我们要在本地 init respository 然后切换到本地仓库目录下