当前位置:网站首页>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
边栏推荐
- Discussion on the development practice of aspnetcore, a cross platform framework
- 代码生成器插件与Creator预制体文件解析
- Introduction to Google software testing
- To teach you to easily understand the basic usage of Vue codemirror: mainly to achieve code editing, verification prompt, code formatting
- How to hide part of barcode text in barcode generation software
- Multi robot market share solution
- Azure data factory (3) integrate azure Devops to realize CI / CD
- Outsourcing is really difficult. As an outsourcer, I can't help sighing.
- How to demote domain controllers and later in Windows Server 2012
- Network programming NiO: Bio and NiO
猜你喜欢
DRF JWT authentication module and self customization
Introduction to the structure of PDF417 bar code system
游戏主题音乐对游戏的作用
事务的隔离级别与所带来的问题
What knowledge do Python automated testing learn?
前端未來趨勢之原生API:Web Components
意外的元素..所需元素..
Staying up late summarizes the key points of report automation, data visualization and mining, which is different from what you think
GitHub: the foundation of the front end
EOS founder BM: what's the difference between UE, UBI and URI?
随机推荐
StickEngine-架构11-消息队列(MessageQueue)
Basic usage of GDB debugging
快速排序为什么这么快?
In depth to uncover the bottom layer of garbage collection, this time let you understand her thoroughly
Behind the first lane level navigation in the industry
What knowledge do Python automated testing learn?
【ElasticSearch搜索引擎】
游戏主题音乐对游戏的作用
Introduction to X Window System
事件监听问题
Kubernetes and OAM to build a unified, standardized application management platform knowledge! (Internet disk link attached)
JVM内存分配 -Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
Network programming NiO: Bio and NiO
Contract trading system development | construction of smart contract trading platform
開源一套極簡的前後端分離專案腳手架
Ronglian completed US $125 million f round financing
(2) ASP.NET Core3.1 Ocelot routing
CCR coin frying robot: the boss of bitcoin digital currency, what you have to know
Description of phpshe SMS plug-in
Even liver three all night, jvm77 high frequency interview questions detailed analysis, this?