当前位置:网站首页>git远程库回退指定版本
git远程库回退指定版本
2020-11-06 21:40:00 【会开车的架构师】
操作过程:
首先查看远程仓库版本,如下图所见,最近一次提交为2018-03-19 22:16:25
第一步:使用git log命令查看历史提交记录,选择要回退的版本号,commit后面一串字符,这里我们选择回退到commit 9d85ad9a……
第二步:git reset --hard 9d85ad9a回退本地版本,并使用git log查看是否回退成功
第三步:git push -f强制回退远程仓库到当前版本
操作后查看远程仓库版本,发现2018-03-19 22:16:25的那次提交不见了,远程仓库回退成功
相关延伸:
版权声明
本文为[会开车的架构师]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4629483/blog/4529705
边栏推荐
- html+vue.js 實現分頁可相容IE
- Markdown tricks
- Even liver three all night, jvm77 high frequency interview questions detailed analysis, this?
- 华为Mate 40 系列搭载HMS有什么亮点?
- How to understand Python iterators and generators?
- The dynamic thread pool in Kitty supports Nacos and Apollo multi configuration centers
- 美团内部讲座|周烜:华东师范大学的数据库系统研究
- Introduction to Google software testing
- What is the purchasing supplier system? Solution of purchasing supplier management platform
- GitHub: the foundation of the front end
猜你喜欢
Even liver three all night, jvm77 high frequency interview questions detailed analysis, this?
ES6 learning notes (5): easy to understand ES6's built-in extension objects
FastThreadLocal 是什么鬼?吊打 ThreadLocal 的存在!!
Filecoin has completed a major upgrade and achieved four major project progress!
[Xinge education] poor learning host computer series -- building step 7 Simulation Environment
JVM内存分配 -Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
Custom function form of pychar shortcut key
Behind the first lane level navigation in the industry
Will blockchain be the antidote to the global epidemic accelerating the transformation of Internet enterprises?
ado.net和asp.net的关系
随机推荐
如何对数据库账号权限进行精细化管理?
Jmeter——ForEach Controller&Loop Controller
What is the purchasing supplier system? Solution of purchasing supplier management platform
How to turn data into assets? Attracting data scientists
Elasticsearch Part 6: aggregate statistical query
C#和C/C++混合编程系列5-内存管理之GC协同
CloudQuery V1.2.0 版本发布
What are Devops
html+vue.js 實現分頁可相容IE
Kubernetes and OAM to build a unified, standardized application management platform knowledge! (Internet disk link attached)
Use modelarts quickly, zero base white can also play AI!
Small program introduction to proficient (2): understand the four important files of small program development
The AI method put forward by China has more and more influence. Tianda et al. Mined the development law of AI from a large number of literatures
StickEngine-架构12-通信协议
小游戏云开发入门
事务的隔离级别与所带来的问题
It's easy to operate. ThreadLocal can also be used as a cache
MongoDB与SQL常用语法对应表
Swagger 3.0 brushes the screen every day. Does it really smell good?
[efficiency optimization] Nani? Memory overflow again?! It's time to sum up the wave!!