吓人的警告。git config push.default matching
来源:互联网 发布:广联达绘图软件下载 编辑:程序博客网 时间:2024/04/27 11:05
原文地址:http://blog.xedn.net/?p=382
升级到 git 1.6.3 以后,每次 git push 的时候都会出现这样“吓人”的警告。
warning: You did not specify any refspecs to push, and the current remotewarning: has not configured any push refspecs. The default action in thiswarning: case is to push all matching refspecs, that is, all brancheswarning: that exist both locally and remotely will be updated. This maywarning: not necessarily be what you want to happen.warning:warning: You can specify what action you want to take in this case, andwarning: avoid seeing this message again, by configuring 'push.default' to:warning: 'nothing' : Do not push anythingwarning: 'matching' : Push all matching branches (default)warning: 'tracking' : Push the current branch to whatever it is trackingwarning: 'current' : Push the current branch
通常,这是很多 Linux 或者说开源社区贴心的地方,主动告诉你,“注意了,我们发布了一个新版本,有些地方和之前的不太一样,需要你自己动手改一下”。。。只是,为什么不直接给出一条简单明了的指令呢?比如,
git config push.default current
这样执行git push的时候,只会push当前的branch,如果设置为matching的话,会push所有的有改动的branch到相应的repository的ref中,相对来说安全性差了点。
另外,我还看到了一篇blog1,讲述了10个升级到1.6.3的理由,除了性能和易用性上的改进之外,又学到了几个新的命令:
1.git diff —staged 等同于 git diff —cached
2.git checkout – 返回之前的branch,类似bash。
3.git log —graph 相当于一个终端版的gitk
4.git log —oneline 精简版的log信息,只有changeset号的前7位和commit信息。
END
- 吓人的警告。git config push.default matching
- git config --global push.default simple 的相关解读
- git warning: push.default ,Push 中 Matching & Simple 区别
- git push.default 的设置
- git push.default设置
- git push.default设置
- $ git push warning: push.default 尚未设置,它的默认值在 Git 2.0 已从 'matching' 变更为 'simple'。若要不再显示本信息并保持传统习惯,进行如
- warning: push.default is unset; its implicit value has changed in Git 2.0 from 'matching' to 'simple
- Git "warning: push.default is unset"
- Git warning push.default is unset
- Git 2.0 changes push default to 'simple'
- Git warning push.default is unset
- Git 2.0 更改 push default 为‘simple’
- git 问题 warning: push.default 尚未设置
- git push warning: push.default is unset 分析解决
- git push后提示warning: push.default is unset
- 关于git push命令中的matching和simple
- git init error:Malformed value for push.default: simple
- asp.net web页面 调用windows api
- log4net 文本文件txt配置
- vs中的快捷键
- ExpandableListView使用示例
- Android的OpenGL ES库之间的依赖关系
- 吓人的警告。git config push.default matching
- android控制摄像头拍照
- 未来,虽是定数,但不可预测!
- 会员教程翻译:性能和时间
- c#备份Oracle数据库的简单程序
- VVf格式监控录像数据恢复软件
- 如何判断一个点是否在一个多边形内部(有向面积)
- iptable
- (1)Http协议详解系列文章-----1