git push-u origin master命令未反映github上的更改

git push-u origin master命令未反映github上的更改,git,github,version-control,git-push,Git,Github,Version Control,Git Push,我在我的项目中进行了4次提交,直到3次提交,我才能够在GitHub上看到更改,但在第4次提交后,它不会在线显示更改 git日志--一行 git-push-u源主机 Everything up-to-date Branch 'master' set up to track remote branch 'master' from 'origin'. 在GitHub上: 从git log--oneline的输出中,我们可以看到第四次提交在分离的头上,而不是master主控只有3次提交。此分离头很可能

我在我的项目中进行了4次提交,直到3次提交,我才能够在GitHub上看到更改,但在第4次提交后,它不会在线显示更改

git日志--一行

git-push-u源主机

Everything up-to-date
Branch 'master' set up to track remote branch 'master' from 'origin'.
在GitHub上:

git log--oneline
的输出中,我们可以看到第四次提交在分离的头上,而不是
master
<代码>主控只有3次提交。此分离头很可能是由git checkout a3fb0e9或git checkout origin/master引起的

要将第四次提交应用于
主控
,您可以

git checkout master
git merge 0d2084d
然后运行
git push origin master
将第四次提交推送到远程存储库

git checkout master
git merge 0d2084d