如何直接从Atom编辑器初始化GitHub repo?
我正在使用Atom文本编辑器,我想将它连接到GitHub。当我尝试从Atom初始化并将repo发布到GitHub时,它抛出了一个错误-如何直接从Atom编辑器初始化GitHub repo?,git,github,atom-editor,Git,Github,Atom Editor,我正在使用Atom文本编辑器,我想将它连接到GitHub。当我尝试从Atom初始化并将repo发布到GitHub时,它抛出了一个错误- fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 在
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
在网上找不到什么好东西。试图使用apm和命令行重新安装github包,但出现错误:未能删除github:C:\Users\User\.atom\packages\github\package.json上找不到package.json
系统-Windows 10,Atom-最新版本
谢谢你的帮助 切换到命令行,只需检查原点:
cd /path/to/local/repository
git remote -v
当我尝试初始化时
单独初始化不会设置原点:您需要手动添加它:
cd /path/to/local/repository
git remote add origin https://url/remote/repository
明白了。您应该使用GitHub桌面应用程序发布一个repo,它工作得很好,然后Atom就会工作。这不是关于克隆,而是关于创建和推送一个repo。@Pythonista OK。我已经修改了答案,以解决推送部分,这取决于定义的“原点”。这也确实有效:GitHub桌面应用程序将设置原点。