如何从Atom编辑器直接初始化GitHub repo ?



我正在使用Atom文本编辑器,我想将其连接到GitHub。当我尝试init和发布一个repo到GitHub从Atom,它抛出一个错误-

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包,但得到一个错误:Failed to delete github: No package.json found at C:UsersUser.atompackagesgithubpackage.json

系统- Windows 10, Atom -最新版本。

谢谢你的帮助!

切换到命令行,只是为了检查起源:

cd /path/to/local/repository
git remote -v

当我尝试init

单独初始化不会设置原点:你需要手动添加它:

cd /path/to/local/repository
git remote add origin https://url/remote/repository

明白了。你应该使用GitHub Desktop应用程序发布一个repo,它可以很好地工作,然后Atom也可以工作。

最新更新