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

导出到Github没有反应 #15

Open
LasyIsLazy opened this issue Jun 28, 2018 · 8 comments
Open

导出到Github没有反应 #15

LasyIsLazy opened this issue Jun 28, 2018 · 8 comments

Comments

@LasyIsLazy
Copy link

点击导出到Github后,提示开始导出到github,然后我从github仓库中并没有查看到文章。
这是我的配置:
_001

我的github仓库:https://github.com/LasyIsLazy/blog
这个仓库中只有一个README,默认分支是master。
希望得到的结果是:
我点击导出到github之后,会自动在github的仓库中建立相关文件夹以及文章。
实际结果:github上并没有任何反应。

@litefeel
Copy link
Owner

多刷几次这个页面,看看有什么错误消息吗, 还有可以打开debug信息,看看有没有什么日志

开启WP_DEBUG https://codex.wordpress.org/WP_DEBUG

日志位置 https://xxxxx.com/wp-content/debug.log

@LasyIsLazy
Copy link
Author

wp-config设置如下:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);

得到的debug.log如下:

[28-Jun-2018 07:04:27 UTC] 
[28-Jun-2018 07:05:41 UTC] 

期间按了两次导出到Github,但是日志里面内容是空的,只有个时间显示。

@LasyIsLazy
Copy link
Author

Make sure the repository has an initial commit or the export will fail.

是因为我之前有太多提交?

@litefeel
Copy link
Owner

litefeel commented Jul 3, 2018

需要至少有一个commit才行

@LasyIsLazy
Copy link
Author

已经有 29 commits 了。难道必须要一个。

@litefeel
Copy link
Owner

litefeel commented Jul 5, 2018

只要有commit就可以了,

@LasyIsLazy
Copy link
Author

问题是,已经有commit了,这个仓库之前就在用,肯定有commit。

@hugeterry
Copy link

+1

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

No branches or pull requests

3 participants