github - 在终端中删除 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
解决方案
删除文件后,您应该:
- 提交更改
- 推送到 github 页面
假设你在本地 gh-pages 分支,命令可能如下所示:
git commit -am 'delete files'
git push origin gh-pages:gh-pages
推荐阅读
- python - 获取包含来自 5 个链接模型的数据的 django 查询集
- amazon-web-services - 即使 CNAME 别名不正确,注册域能否提供相同的 S3 存储桶?
- java - Agora.io 远程视频是空白的。只有音频作品。本地作品中的一切
- node.js - MEAN 堆栈:使用 express-validator 正确清理用户输入
- if-statement - 突出显示动态范围内单元格值最高的行
- python - 修改可执行python文件问题
- r - ggplot lwd 压倒一切的图例
- .net-core - dotnet core 3.1 应用程序初始化与 heathcheck
- c# - .Net 标准库使用 selenium/cefsharp
- r - 使用午夜列中的日期和秒数将 data.frame 转换为 xts 对象 (R)