Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mas系统检测远程连接失败。提示no such remote 'origin'。 #403

Closed
mikumikulch opened this issue Jan 8, 2020 · 6 comments
Closed
Labels
bug

Comments

@mikumikulch
Copy link

@mikumikulch mikumikulch commented Jan 8, 2020

检查了所有的配置,和 github 上都是一致的。但是就是报 no such remote 'origin'。

我的仓库:
https://github.com/mikumikulch/ChuckLin.github.io

image

@mikumikulch mikumikulch added the bug label Jan 8, 2020
@hsxyhao

This comment has been minimized.

Copy link

@hsxyhao hsxyhao commented Jan 8, 2020

no remote一般都是output文件夹的git远程地址没有设置成功,自己手动添加上就行了,具体的操作可以看这篇博客,在源码这里 可以看见部署的时候会给output设置远程仓库,有兴趣的了解下
希望对你有帮助

@bnqwxhdmz

This comment has been minimized.

Copy link

@bnqwxhdmz bnqwxhdmz commented Jan 8, 2020

Mac安装完gridea之后是有一个站点源文件路径, 切换到output文件夹下, 删除.git文件夹, 解决问题

@mikumikulch

This comment has been minimized.

Copy link
Author

@mikumikulch mikumikulch commented Jan 9, 2020

Mac安装完gridea之后是有一个站点源文件路径, 切换到output文件夹下, 删除.git文件夹, 解决问题

按照这个方式解决了问题。非常感谢。

@mikumikulch mikumikulch closed this Jan 9, 2020
@fengxtao

This comment has been minimized.

Copy link

@fengxtao fengxtao commented Jan 14, 2020

我试着并不行 ,,放弃了 哎。。

@xueqian-chen

This comment has been minimized.

Copy link

@xueqian-chen xueqian-chen commented Jan 16, 2020

我试着并不行 ,,放弃了 哎。。

可以试试以下方案:

出错原因:
Gridea\output.git\config 文件了缺失内容。

解决方案,在该文件末尾增加以下内容:

[remote "origin"]
	url = https://GitHub用户名:你的Token@github.com/GitHub用户名/GitHub用户名.github.io.git
	fetch = +refs/heads/*:refs/remotes/origin/*

其中,把「GitHub用户名」和「你的Token」做相应的替换。

@qxkbwl

This comment has been minimized.

Copy link

@qxkbwl qxkbwl commented Feb 15, 2020

win10修改路径:C:\Users\xxxx\Documents\Gridea\output
其中xxx是你的用户名,
删除.git即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.