【发布时间】:2020-06-14 05:03:05
【问题描述】:
我已将我的投资组合部署到我在 a.github.io 上的帐户。
我做了一些更改,但它们没有在网站上上线。事实上,即使我在 Visual Studio 上进行了更改,提交部分也没有显示任何提交。
如果我提交更改,我会得到
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
modified: node_modules/gh-pages/.cache/github.com!a!a.github.io.git (new commits)
no changes added to commit
即使我正在做出改变。
所以我的更改不会生效。
编辑:
现在,提交工作了,但是当我推送更改时我得到了这个:
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/a/a.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.
【问题讨论】:
-
你成功了吗?
-
不,仍然没有。即使强制推送我的文件,提交也会显示在 GitHub 上,但网站没有更新@VonCpan>
标签: git visual-studio github terminal github-pages