推到github时我没有包括“起源”一词

问题描述

请参阅我在底部附加的git log

我正在'listing-filters'分支上工作,并成功提交了直到 “ Minor css edits”提交。

但是,我不小心遗漏了单词origin并输入了 'git push listing-filters',看来这些提交已推送到HEAD -> listing-filters 而不是origin/listing-filters

必须将“子过滤器组件上的设计编辑”推送到origin / listing-filters分支,但在我的本地计算机上,所有内容都已应用,但是这些提交未推送到origin / listing-filters分支中的任何位置(即使从GUI也是如此)的Github)。

我的屏幕上显示“ nothing to commit”。

有人可以给我一些有关如何将HEAD分支合并到origin分支的提示吗?


commit 83aef6716d8a2be6fa5195dd32cea9b4b5ebd1ad (HEAD -> listing-filters)
Author: Danny Rhee <dongyunrhee@gmail.com>
Date:   Tue Sep 22 03:23:36 2020 -0700

    Testing

commit d663f88868047423404a9578d271711ef90bd459
Author: Danny Rhee <dongyunrhee@gmail.com>
Date:   Tue Sep 22 03:12:13 2020 -0700

    Testing

commit 9cc3fe28dec09af1765d6df2c79634f4b1346051
Author: Danny Rhee <dongyunrhee@gmail.com>
Date:   Tue Sep 22 03:11:55 2020 -0700

    Something went wrong? Commit dissappeared

commit 19dba0e67aef7d2e7abf4b3d34fce952cab29fc6
Author: Danny Rhee <dongyunrhee@gmail.com>
Date:   Tue Sep 22 03:09:50 2020 -0700

    Design Edits on SubFilter Component

commit b13e6be2ddeb3c3fefa3de81effc318dd02ecd48 (origin/listing-filters,origin/d663f88)
Author: Danny Rhee <dongyunrhee@gmail.com>
Date:   Tue Sep 22 01:23:51 2020 -0700

    Minor css edits

commit 5c72bd01d145b6a2baf6d82dca324aaa80f30c75
Author: Danny Rhee <dongyunrhee@gmail.com>
Date:   Tue Sep 22 01:00:42 2020 -0700

    Bit of refactoring: SubFilter component can be refactored more

commit 5503ef4b59a15ffdb2c3647e4736231f60892fd4
Author: Danny Rhee <dongyunrhee@gmail.com>
Date:   Tue Sep 22 00:38:23 2020 -0700

    Reseting button working fine

commit 32d77b249fa6bce6a156edcdfb28d7efbf360eb4
Author: Danny Rhee <dongyunrhee@gmail.com>
Date:   Tue Sep 22 00:30:59 2020 -0700

    Chaning the property type being properly updated/rendered

解决方法

再试一次,确保将本地分支与远程分支相关联:

git push -u origin listing-filters

使用以下命令检查分支是否与其上游分支正确关联

git branch -avv

如果是这样,那么下一次,简单的git push(不需要其他参数)就足够了。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...