Git-直接git push 后 出现的warning
2016-01-19 11:58
323 查看
背景说明:
断断续续的在win10 系统 安装配置好了git,包括 Git Bash Git GUI,和TortoiseGit ,之所以安装这么多,是因为慢慢往底层Linux学习,除了图形界面,命令行的操作当然是不可以忘的。最近正在着手自己写一个小项目 ,其实就是集大成的智慧,把最新的一些Android 新特性,和开源的一些项目进行融合,从中去学习源码,适配,兼容,打包等等,整个流程吧。
当然我比较喜欢酷炫的界面效果,那意味着慢慢的还是要学UI设计的,目前智慧一丢丢的PS 而已,或许你可能想这么过程要多漫长,只能说慢慢来吧,因为收藏的很多的网址,demo 多达上千个,比较凌乱,最近也在慢慢整理,可是还是觉得不够直观,所以尽可能的把多有demo整合到一个项目中,也是为了在工作中使用的时候查找更加方便。
回到正题:
开发工具、开发环境:Android studio + gradle +Git
警告提示
$ git push
warning: push.default is unset; its implicit value has changed in
Git 2.0 from ‘matching’ to ‘simple’. To squelch this message
and maintain the traditional behavior, use:
git config –global push.default matching
To squelch this message and adopt the new behavior now, use:
git config –global push.default simple
When push.default is set to ‘matching’, git will push local branches
to the remote branches that already exist with the same name.
Since Git 2.0, Git defaults to the more conservative ‘simple’
behavior, which only pushes the current branch to the corresponding
remote branch that ‘git pull’ uses to update the current branch.
See ‘git help config’ and search for ‘push.default’ for further information.
(the ‘simple’ mode was introduced in Git 1.7.11. Use the similar mode
‘current’ instead of ‘simple’ if you sometimes use older versions of Git)
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
首先,我已经在github中创建了自己的一个repository,地址链接如下:项目链接地址
进入本地的repository目录下,右击 选择GitBush here
一些前提的配置已经设置好了,接下来的操作就是把github上的一些文件pull 下来,之后把本地的工程push 上去的操作。
进入到master (最后蓝色的)
给出下面的警告,之后你只需要再进行一下设置,确定 是把工程 push到哪个repository中即可。
之后再
看到提示
之后 就可以到 github上去看 你的工程 有没有 上传上去了。
断断续续的在win10 系统 安装配置好了git,包括 Git Bash Git GUI,和TortoiseGit ,之所以安装这么多,是因为慢慢往底层Linux学习,除了图形界面,命令行的操作当然是不可以忘的。最近正在着手自己写一个小项目 ,其实就是集大成的智慧,把最新的一些Android 新特性,和开源的一些项目进行融合,从中去学习源码,适配,兼容,打包等等,整个流程吧。
当然我比较喜欢酷炫的界面效果,那意味着慢慢的还是要学UI设计的,目前智慧一丢丢的PS 而已,或许你可能想这么过程要多漫长,只能说慢慢来吧,因为收藏的很多的网址,demo 多达上千个,比较凌乱,最近也在慢慢整理,可是还是觉得不够直观,所以尽可能的把多有demo整合到一个项目中,也是为了在工作中使用的时候查找更加方便。
回到正题:
开发工具、开发环境:Android studio + gradle +Git
警告提示
$ git push
warning: push.default is unset; its implicit value has changed in
Git 2.0 from ‘matching’ to ‘simple’. To squelch this message
and maintain the traditional behavior, use:
git config –global push.default matching
To squelch this message and adopt the new behavior now, use:
git config –global push.default simple
When push.default is set to ‘matching’, git will push local branches
to the remote branches that already exist with the same name.
Since Git 2.0, Git defaults to the more conservative ‘simple’
behavior, which only pushes the current branch to the corresponding
remote branch that ‘git pull’ uses to update the current branch.
See ‘git help config’ and search for ‘push.default’ for further information.
(the ‘simple’ mode was introduced in Git 1.7.11. Use the similar mode
‘current’ instead of ‘simple’ if you sometimes use older versions of Git)
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
首先,我已经在github中创建了自己的一个repository,地址链接如下:项目链接地址
进入本地的repository目录下,右击 选择GitBush here
一些前提的配置已经设置好了,接下来的操作就是把github上的一些文件pull 下来,之后把本地的工程push 上去的操作。
进入到master (最后蓝色的)
git push
给出下面的警告,之后你只需要再进行一下设置,确定 是把工程 push到哪个repository中即可。
$ git config --global push.default matching
之后再
git push
看到提示
Everything up-to-date
之后 就可以到 github上去看 你的工程 有没有 上传上去了。
相关文章推荐
- axis2 生成CDATA节点
- CSS3一般媒体查询
- 学会对美工Say No---Material Design
- 1、理解继承
- 使用sqljdbc连接mssql数据库,maven生成jar运行后报"Exception in thread "main" java.lang.SecurityException"错误
- CentOS 国内yum源
- android 蓝牙 搜索匹配
- 【数据表格】-004-columns特性
- [我的PHP之旅] 03. mysql数据库的安装
- 如在调试的时候轻松找到程序在哪里崩溃
- Android软键盘弹出时把布局顶上去的解决方法 .
- 理解A*寻路算法具体过程
- bzoj2597: [Wc2007]剪刀石头布
- 使用jdk中keytool生成证书
- scala学习笔记4
- 25-语言入门-25-n-1位数
- thinkphp验证码
- php获取指定文件夹下所有文件的文件名
- iOS cocoPod的基本使用
- android Activity关闭动画 附左右动画anim