Git 相关
来源:互联网 发布:淘宝买家秀百度云 编辑:程序博客网 时间:2024/05/16 09:01
代码提交到master, 需要回滚, 如何做:
- 使用smart git 进行revert
- 使用smart git 将自己fork的代码download到本地
- 选择提交到folk的 commit, 右单击, 选择revert (由新到旧) 逐条回滚
- 全部revert后, 本地代码已经回滚至以前的某一版本
- 在本地进行测试 确保代码正确性
- commit代码至自己的folk
- create pull request 至 master, 然后进行merge等操作
代码回滚后 找回以前改的版本
- 使用smart git 进行 cherry pick
- 选择提交过的代码 , 右键,选择 cherry pick (由旧到新) 逐条恢复
修改pull request的地址:
项目根目录 .git/config 文件
[remote “origin”]
url = https://xxx-owmessaging@bitbucket.org/openwave/xxx.git
fetch = +refs/heads/:refs/remotes/origin/
pushurl = https://xxx-owmessaging@bitbucket.org/xxx-owmessaging/xxx.git
push = +refs/heads/:refs/remotes/origin/
这样修改后 每次提交代码都会提交到 自己的folk上, pull的时候都会从master上拖拽, 省去了 sync的操作步骤
0 0
- Git 相关
- git 相关
- git 相关
- git相关
- git相关
- Git相关
- Git相关
- git相关
- Git 相关
- Git相关
- git 相关
- git相关
- git 相关
- git相关
- git相关
- Git 相关
- git 相关
- git 相关
- Microsoft Caffe(msCaffe)无GPU快速配置
- sdut oj2133 数据结构实验之栈三:后缀式求值
- 通知栏的最小代码
- 通过系统调用basename(), dirname()得到当前路径下的文件名和目录名
- Faster RCNN实验
- Git 相关
- 题目844 A+B Problem (V)
- PV、TPS、QPS是怎么计算出来的?
- 自定义圆形滚动条(透明效果)--利用开源项目ProgressWheel
- PHP数组与JSON数据格式的转换
- Java 分布式事务(多数据源)
- 解析XML的几种方式
- The dependency `***` is not used in any concrete target.
- Ext中关于Ext.QuickTips.init()的使用