首页 > 解决方案 > 在终端中删除 gh 页面不会影响 github

问题描述

我在终端中删除了以下文件,但在 github 分支上看不到更改要提交的更改:(使用“git reset HEAD ...”取消暂存)

deleted:    adminindex.html
deleted:    createsession.html
deleted:    entryapp.html
deleted:    entrystyle.css
deleted:    indexsignin.html
deleted:    indexsignup.html
deleted:    indexspecificmentor.html
deleted:    mentordecisioncard.css
deleted:    mentordecisioncard.html
deleted:    mentordecisioncard.js
deleted:    mentordecline.html
deleted:    mentorlist.js
deleted:    mentorsdecision.html
deleted:    mentorslist.css
deleted:    mentorslist.html
deleted:    othercard.css
deleted:    othercard.html
deleted:    signinstyle.css
deleted:    signupstyle.css
deleted:    trialmentor.css
deleted:    trialmentor.html
deleted:    trialmentor.js

标签: githubgithub-pages

解决方案


删除文件后,您应该:

  1. 提交更改
  2. 推送到 github 页面

假设你在本地 gh-pages 分支,命令可能如下所示:

git commit -am 'delete files'

git push origin gh-pages:gh-pages

推荐阅读