git - 推送到 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 分支中的任何位置(即使来自 Github 的 GUI) .
它nothing to commit
在我的屏幕上显示“”。
谁能给我一些关于如何将 HEAD 分支合并到源分支的提示?
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
(不需要额外的参数)就足够了。
推荐阅读
- vue.js - Vuex 模块初始化最佳实践
- python - 使用 Jupyter 中的 Python 设置 Drive API 时出错
- reactjs - 网络错误 Django 后端反应前端
- javascript - 单击按钮更改背景颜色
- swift - 取消 facebook 身份验证时,一个(swift)项目崩溃
- laravel - 使用 laravel 后端 api 在 vuejs 中搜索
- postgresql - 重新启动 vm 后无法访问数据库
- python - 升级tensorflow时出错
- mariadb - MariaDB 不工作
- python - 如何在 scikit-learn 中使用数字索引与 pd.DataFrame 进行交叉验证(禁用 _safe_split)?