javascript - Git Pages 不能放一个项目吗 然后打开index.html访问?

 mobiledu2502877697 发布于 2022-11-17 23:48

问题更新:
题主下午新开了一个repo,按照教程上去做。
https://github.com/ritsuyan/2048.github.io
结果打开
http://2048.github.io
发现还是不行。

现在问题就是用github提供的index.html做任何修改都能访问
把自己的项目放上去,然后push 就不能了。

太惨了

还是不懂

5 个回答
  • 我是题主
    在把项目push到master上面遇到错误:
    error: failed to push some refs to 'https://github.com/ritsuyan/ritsuyan.github.io.git'
    hint: Updates were rejected because the remote contains work that you do
    hint: not have locally. This is usually caused by another repository pushing
    hint: to the same ref. You may want to first integrate the remote changes
    hint: (e.g., 'git pull ...') before pushing again.
    hint: See the 'Note about fast-forwards' in 'git push --help' for details.

    2022-11-18 00:25 回答
  • 可以参考一下我的目录配置,我的github-pages就是只用了静态页面。并且只有一个master分支https://github.com/zp1996/zp1996.github.io

    2022-11-18 00:25 回答
  • git pages只能托管静态页面

    2022-11-18 00:25 回答
  • 命令出错了,,看这里

    2022-11-18 00:25 回答
  • 于是我也学楼上打一下广告了(逃
    这是托管在github.io上的(基本不怎么管的)博客github.io
    这是托管在coding.me上的(连半成品都不算的)作品集coding.me
    原来还有放在gitcafe上的一个,不过gitcafe要和coding合并了orz
    反正按照教程配置就可以了(

    2022-11-18 00:25 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有