gpt4 book ai didi

git - 如何直接从 Atom 编辑器初始化 GitHub 存储库?

转载 作者:行者123 更新时间:2023-12-04 08:01:20 26 4
gpt4 key购买 nike

我正在使用 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.
网上没找到好东西。尝试使用 apm 和命令行重新安装 github 包,但出现错误: Failed to delete github: No package.json found at C:\Users\User\.atom\packages\github\package.json系统 - Windows 10,Atom - 最新版本。
谢谢你的帮助!

最佳答案

切换到命令行,只是为了检查原点是什么:

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

when I try to init


单独初始化不会设置原点:您需要手动添加它:
cd /path/to/local/repository
git remote add origin https://url/remote/repository

关于git - 如何直接从 Atom 编辑器初始化 GitHub 存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66452144/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com