git - 没有什么可以比较的。main 和 master 是完全不同的提交历史
问题描述
我有这些:
(fashcomp) [jalal@goku fashion-compatibility]$ git push --set-upstream origin master
Counting objects: 50, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (45/45), done.
Writing objects: 100% (50/50), 22.72 MiB | 8.95 MiB/s, done.
Total 50 (delta 16), reused 0 (delta 0)
remote: Resolving deltas: 100% (16/16), done.
remote:
remote: Create a pull request for 'master' on GitHub by visiting:
remote: https://github.com/monajalal/fashion_compatibility/pull/new/master
remote:
To https://github.com/monajalal/fashion_compatibility.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
(fashcomp) [jalal@goku fashion-compatibility]$ git branch -a
* master
remotes/origin/master
(fashcomp) [jalal@goku fashion-compatibility]$ git fetch --all --tags
Fetching origin
但是,我没有看到任何请求的地方。如何使 master 成为具有代码的实际分支并摆脱 main ?
解决方案
鉴于该main
分支没有显示在终端中,使用 GitHub UI 对我来说是诀窍。
设置 --> 分支 --> 默认分支 --> 更改为预期的分支
推荐阅读
- android - 如何在 glsurfaceview 和 cameraview 上修复 3D 对象并从不同角度旋转它?
- java - Android P ,下载不开始使用下载管理器?
- php - Laravel Eloquent ID 作为数组键
- android - 解析存储在 ionic 3 中的常量中的 JSON 字符串
- java - JavaFX - 加载下一个场景时保留工具栏
- c++ - 如何将 C 类型“char *”存储到 C++ 向量中?
- selenium - 如何在 Appium 中使用现有的应用程序会话
- python - 没有名为 graphframes 的模块 Jupyter Notebook
- angular - 使用新值复制和更新对象并存储到数组
- gemfire - 无法为嵌入式 Apache Geode 缓存服务器操作在 Spring 上下文中定义的区域