git常见问题之git pull时Please specify which branch you want to merge with.
2024-10-03 11:16:48
$ git pull时遇到如下提示
$ git pull
warning: no common commits
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
From github.com:nonfuxinyang/android-study
* [new branch] master -> origin/master
There 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> master
看到第二个提示,我们现在知道了一种解决方案。也就是指定当前工作目录工作分支,跟远程的仓库,分支之间的链接关系。<br>
比如我们设置master对应远程仓库的master分支
git branch --set-upstream master origin/master
这样在我们每次想push或者pull的时候,只需要 输入git push 或者git pull即可。
在此之前,我们必须要指定想要push或者pull的远程分支。
git push origin master
git pull origin master.
最新文章
- XCode4.5.6,iOS6.1下测试 判断当前设备,及其联网状态等; 关于设备插上后XCode检测不出的情况的说明
- 在Ubuntu13.04中配置Jexus+Mono3.2运行Asp.Net Mvc 4站点 (二)
- Android本机号码及Sim卡状态的获取
- samba 服务
- 使用Java API创建(create),查看(describe),列举(list),删除(delete)Kafka主题(Topic)
- Apple严控Java太不人性化
- CodeBlocks的下载安装、配置、简单编程
- js中编码问题escape、encodeURI
- XBMC源代码分析 1:整体结构以及编译方法
- 0011 删除链表的倒数第N个节点
- Codeforces 776D The Door Problem
- 20155234 Exp2 后门原理与实践
- xcode6 怎样下载ios7模拟器
- cxf-rs 、spring 和 swagger 环境配置切换【github 有项目】
- jquery选择器的实现流程简析及提高性能建议!
- mysql 错误:1166 解决办法
- 从官网学习Node.js FS模块方法速查
- cocos2dx2.x 创建项目
- 【BZOJ 1969】 1969: [Ahoi2005]LANE 航线规划 (树链剖分+线段树)
- 基础10 多进程、协程(multiprocessing、greenlet、gevent、gevent.monkey、select、selector)