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

deploy之后仓库里的历史文件都被删除 #42

Closed
Shineee opened this Issue Jul 19, 2016 · 2 comments

Comments

3 participants
@Shineee
Copy link

Shineee commented Jul 19, 2016

执行deploy命令之后,原有未更新的旧版本文件都被删除了(比如readme.md文件)
每次更新,我并没有更新readme,但是我github仓库里的readme被删除了
可以保留旧版本文件么?

@NoahDragon

This comment has been minimized.

Copy link
Member

NoahDragon commented Sep 30, 2016

如果希望保留文件,请将文件放到Source文件夹下,然后再deploy.

@NoahDragon NoahDragon closed this Sep 30, 2016

@Jiiiiiin

This comment has been minimized.

Copy link

Jiiiiiin commented Jan 24, 2018

@NoahDragon 放到souce目录下之后,在deploy就悲剧了:


看来不能直接放README.md而是要直接放README 哎。
但是:

还是有问题,有没有好一点的方案?不让hexo g去转义souce中的README.md?

我想到的在偷懒的解决方式就是把默认分支切换掉了。 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment