git roll back the previous version
来源:互联网 发布:大连知润 编辑:程序博客网 时间:2024/05/19 17:26
有些时候,工程上使用的是先前的版本,因此需要先git clone下来最新的版本,然后checkout回退回去先前的版本。
使用git clone xxx --recursive递归的将所有相关代码下载下来后,便可以进行编译,运行。
但是要回退回到之前的版本,需要找到要回退的版本的commit 编号(是一串数)。可以在命令行,git log,然后搜索release,或者在github的项目后面,加入/release来查找对应版本的编号,一旦找到后,便可以使用git checkout 版本编号来进行回退。
当然,如果有子模块,那么也要一并的更新到当时的模块,使用git submodule update (更新项目下依赖的子模块)来完成该项目的第三方库的依赖回退。
之后便可以编译这部分代码。
阅读全文
0 0
- git roll back the previous version
- roll back
- Shall I keep the previous version?
- How to rollback to the previous version in svn
- 关于前滚(roll forward)和回滚(roll back)
- fatal error C1853: 'Debug\***.pch' precompiled header file is from a previous version of the compil
- error C1853: 'Debug\xxx.pch' precompiled header file is from a previous version of the compiler
- navicat还原mysql备份文件时roll back
- hdu5955Guessing the Dice Roll
- HDU3309-Roll The Cube
- All of the previous
- precompiled header file is from a previous version of the compiler, or the precompiled hea in vs2005
- fatal error C1853:pecompiled header file is from a previous version of the compiler,or the precompil
- (转)fatal error C1853: precompiled header file is from a previous version of the compiler, or the pre
- recompiled header file is from a previous version of the compiler, or the precompiled header is C++
- atal error C1853: 'Debug\xxx.pch' precompiled header file is from a previous version of the compiler
- fatal error C1853: 'Debug\test.pch' precompiled header file is from a previous version of the compil
- fatal error C1853: 'Debug\test.pch' precompiled header file is from a previous version of the compil
- leetcode--Permutations
- mac安装thrift-0.9.1
- linux之sed用法
- .Net学习框架
- Python 字符串转python json.decoder.JSONDecodeError
- git roll back the previous version
- HBase 0.98增删改查java代码实现
- lintcode刷题——整数转罗马数字
- javaweb:判断当前请求是否为移动设备访问
- 新学期新开始
- Js之原型模式
- Qt之自定义界面添加最小化、最大化和关闭按钮
- jq中自定义属性取值 data-info
- centos7 安装mysql以及常见问题的解决