Git本地分支与远程分支关联问题(git branch --set-upstream-to=origin/<branch> )
来源:互联网 发布:linux您的ip被占用 编辑:程序博客网 时间:2024/05/11 15:35
Git在本地新建分支后,必须要做远程分支关联。关联目的是如果在本地分支下进行git pull 和 git push操作时 ,不需要指定在命令行指定远程的分支. 推送到远程分支时,没有关联的情况下而且没有指定, git pull 的时候,就会提示你如下信息:
MacBook-Pro:projects user$ git pullThere is no tracking information for the current branch.Please specify which branch you want to merge with.See git-pull(1) for details. git pull <remote> <branch>If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=origin/<branch> pj-risk
解决方法:
使用命令git branch –set-upstream ; test为创建的分支
$ git branch --set-upstream debug origin/test
阅读全文
1 0
- Git本地分支与远程分支关联问题(git branch --set-upstream-to=origin/<branch> )
- Git新建本地分支与远程分支关联问题:git branch --set-upstream
- Git新建本地分支与远程分支关联问题:git branch --set-upstream
- Git新建本地分支与远程分支关联问题:git branch --set-upstream
- git branch --set-upstream 本地关联远程分支
- 解决Git建立远程分支关联时fatal the current branch master has no upstream branch 问题
- git branch --set-upstream=origin/<branch> <local_branch>
- git branch set-upstream master 分支名/master
- git branch --set-upstream develop origin/develop
- git clone branch 远程分支
- git branch --set-upstream
- git branch --set-upstream
- Git使用手册:git branch 分支操作、创建分支、查看分支、删除分支、删除本地分支、删除远程分支
- Git branch 分支与合并分支
- git分支branch详解
- Git branch 分支
- git branch分支开发
- Git 开branch分支
- HTTP状态码
- 人工智能资料
- Lua之ipairs与pairs详解
- nyoj 21-三个水杯(bfs)
- VxWorks任务追踪实例分析
- Git本地分支与远程分支关联问题(git branch --set-upstream-to=origin/<branch> )
- FXML如何设定窗口与内面板的最大化
- greendao配置
- 世界坐标转到UGUI坐标
- LLE算法
- JavaWeb项目为什么我们要放弃jsp?为什么要前后端解耦?为什么要前后端分离?2.0版,为分布式架构打基础。
- codeforces.contest/833/problem/B(DP+线段树维护最大值)
- mysql 查询表列数
- PAT_乙级1014