Github桌面:无法发布 [英] Github Desktop: Not able to publish
本文介绍了Github桌面:无法发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个我想上传到GitHub的项目。我已经使用Github桌面创建一个本地存储库,我可以提交文件。但是一旦我尝试发布它,发布图标就会消失,并且不会允许我这样做。我已在设置 - >选项
中检查了我的设置,并且它们是正确的。
I have a project which I want to upload to GitHub. I have used Github Desktop to create a local repository and I am able to commit files to it. But once I try to publish it, the publish icon just fades and won't allow me to do it. I have checked my settings in Settings->Options
and they are correct.
推荐答案
由于本地仓库没有远程URL,因此您需要添加一个,引用您拥有的远程空回购(例如在GitHub上):
Since the local repo has no remote url, you need to add one, referencing a remote empty repo that you own (on GitHub for instance):
cd /path/to/repo
git remote add origin https://github.com/<user>/<an_empty_repo>
或者,在GitHub桌面:
Or, in GitHub Desktop:
Settings->Repository settings->Remote
然后你将能够发布。
这篇关于Github桌面:无法发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文