$ 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.

最新文章

  1. XCode4.5.6,iOS6.1下测试 判断当前设备,及其联网状态等; 关于设备插上后XCode检测不出的情况的说明
  2. 在Ubuntu13.04中配置Jexus+Mono3.2运行Asp.Net Mvc 4站点 (二)
  3. Android本机号码及Sim卡状态的获取
  4. samba 服务
  5. 使用Java API创建(create),查看(describe),列举(list),删除(delete)Kafka主题(Topic)
  6. Apple严控Java太不人性化
  7. CodeBlocks的下载安装、配置、简单编程
  8. js中编码问题escape、encodeURI
  9. XBMC源代码分析 1:整体结构以及编译方法
  10. 0011 删除链表的倒数第N个节点
  11. Codeforces 776D The Door Problem
  12. 20155234 Exp2 后门原理与实践
  13. xcode6 怎样下载ios7模拟器
  14. cxf-rs 、spring 和 swagger 环境配置切换【github 有项目】
  15. jquery选择器的实现流程简析及提高性能建议!
  16. mysql 错误:1166 解决办法
  17. 从官网学习Node.js FS模块方法速查
  18. cocos2dx2.x 创建项目
  19. 【BZOJ 1969】 1969: [Ahoi2005]LANE 航线规划 (树链剖分+线段树)
  20. 基础10 多进程、协程(multiprocessing、greenlet、gevent、gevent.monkey、select、selector)

热门文章

  1. django_rest framework 接口开发(一)
  2. JAVA笔记整理(六),JAVA中的多态
  3. 没想到有一天我喜欢上java是因为微软,感谢啊
  4. POI进行导出时候发现有不可读取的内容
  5. CQOI2005 三角形面积并 和 POJ1177 Picture
  6. WebForm FindControl的使用方法
  7. 什么是 restful 规范?
  8. 23 | MySQL是怎么保证数据不丢的?
  9. asp.net文件夹上传源码
  10. pyexcel_xlsx