当前位置:网站首页>Do you really understand code rollback?
Do you really understand code rollback?
2022-07-27 03:45:00 【Yixiaojun】
What is code rollback ?
Before I officially start today's sharing , First, I'll tell you two core concepts :
1. Package rollback refers to , Online systems , Rollback from the current version to the previous stable version .
2. Code rollback refers to ,Git The pointer to the branch ( The cursor ), Change from pointing to the current problematic version to pointing to a problem free version on the branch history tree , And this version can be what it used to be commit, It can also be new commit.
Are you also having problems ?
In daily code management , Most development engineers are troubled , The question they ask me most is : The problem of code rollback . These problems , Some only affect personal development , And some involve the whole team . I have sorted and summarized these problems , You can see if you have encountered similar problems ?
1. This morning, I pulled a new branch in my own development environment , submitted 5 individual commit, Latest submitted 3 individual commit I don't want it anymore , Then how can I return here 3 individual commit The previous one commit?
answer : Reference I will share below “ Personal branch rollback ” The content of .
2. My local branch passes reset --hard Code rollback , Want to pass push Let the remote branches roll back together , perform push An error is reported when ordering , What should I do ?
answer : If not -f Parameters , perform reset --hard after ,push Will be rejected , Because the latest submission of your current branch lags behind its corresponding remote branch .push When combined with -f Parameters represent forced overrides .
3. The online package has been rolled back to yesterday's version , I clearly remember yesterday I put
边栏推荐
- Banyan loan,
- Introduction to database - a brief introduction to MySQL
- 智能体重秤方案主控采用CSU18M91
- 关于使用hyperbeach出现/bin/sh: 1: packr2: not found的解决方案
- 复盘:DFS与BFS的主要区别,在思想上的区别,代码实现上的区别
- Unity game, the simplest solution of privacy agreement! Just 3 lines of code! (Reprinted)
- [tree chain dissection] template question
- Briefly sort out the dualpivotquicksort
- 数字孪生实际应用:智慧城市项目建设解决方案
- J-3-point practice in the second game of 2022 Niuke multi school
猜你喜欢

Record the problem of PHP program accessing system files incorrectly

数字孪生应用及意义对电力的主要作用,概念价值。

Double disk: the main differences between DFS and BFS, the differences in ideology, and the differences in code implementation
![[untitled] JDBC connection database read timeout](/img/24/726ed8b3419866244a1b69e6485d7c.png)
[untitled] JDBC connection database read timeout

网络安全/渗透测试工具AWVS14.9下载/使用教程/安装教程

Explain详解

connman介绍

Meta Quest内容生态总监谈App Lab设计初衷

Deeply understand the underlying data structure and algorithm of MySQL index

Deployment of ruoyi's environment and operation of the system
随机推荐
网络安全/渗透测试工具AWVS14.9下载/使用教程/安装教程
Redis source code learning (33), command execution process
It's too strong. An annotation handles the data desensitization returned by the interface
Detailed explanation of const usage in C language
[understanding of opportunity -52]: the depth of communication varies from person to person
How to interact with the server when the client sends an SQL message
Ring counting (Northern Polytechnic machine test questions) (day 83)
【正则】判断, 手机号,身份证号
Worthington papain dissociation system solution
Characteristics and determination scheme of Worthington pectinase
Design method and test method of APP interface use case
Mysql database related operations
Contour detection based on OpenCV (2)
J-3-point practice in the second game of 2022 Niuke multi school
redis入门练习
Data analysis and disassembly method of banyan tree in Bairong
【树链剖分】2022杭电多校2 1001 Static Query on Tree
智能体重秤方案主控采用CSU18M91
Method of converting curtain article OPML into markdown
Code practice when the queue reaches the maximum length
