git 问题
2015-08-04 13:18
369 查看
1.Pushing to git@github.com:rickyfeng/wenda.git To git@github.com:rickyfeng/wenda.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'git@github.com:rickyfeng/wenda.git' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes (e.g. 'git pull') before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details.
Merge the remote changes (e.g. 'git pull') before pushing again. 意思你改动的内容变化之前已经有变化了,你可能还不知道,所以你需要先merge一下,合并一下文件。然后才能同步上去的。
2.Git hub pull时候的错误 : The current branch is not configured for pull No value for key branch.master.mer
1.在本地工程目录找到config文件(我的是在E:\rocket\rocket\.git); 2.修改config文件内容为: [core] repositoryformatversion = 0 filemode = false logallrefupdates = true [branch "master"] remote = origin merge = refs/heads/master [remote "origin"] url = https://github.com/androidzhaoxiaogang/rocket.git (修改为自己的url) fetch = +refs/heads/*:refs/remotes/origin/* 3.再执行pull方法,发现工作ok了
相关文章推荐
- 玲珑杯Unity开发心得——游戏中暂停及积分显示GUI
- 重学java23种设计模式(12)代理模式
- iOS UIScrollView里面添加UIView,有时候y相差20
- windows下修改mysql的数据库数据文件路径
- Get vertical scrollbar width and example
- string引用传递的特殊性
- trie树Java实现
- JS中"||"操作符的用法
- 我所理解的马
- 共振峰估计基础
- 如何记忆网络掩码和位数的对应关系
- 手势识别器
- Spark入门三部曲之第二步Spark开发环境搭建
- myeclipse导入java EE 5 Library
- IOS布局
- 大数据:通过Mesos、Docker和Go,使用300行代码创建一个分布式系统
- 一个不小心引发的问题,installation failed invalid argument
- 23种设计模式搞笑解释
- PIM-SM
- Xcode6 添加pch文件