Git Step By Step - Step 2: Go Back in Time
来源:互联网 发布:联通关闭2g网络 编辑:程序博客网 时间:2024/04/30 21:42
Scenario 1: discarding unstaged changes
You are working on a certain branch, and after your last commitment, you have made some changes which you haven't staged yet, now, you want do abandon those changes.
Scenario 2: go back to a prior commitment
You need to know the hash code of the commitment you want to go back to, you can get it by running log command:
Or you can make your query more specific:
Now you know how to identify one certain commitment, then you can run reset command to go back to a previous commitment:
0 0
- Git Step By Step - Step 2: Go Back in Time
- Git step by step
- Git Step by Step
- Git step by step
- Git Step by Step (2):本地Repo
- Git Step by Step (2):本地Repo
- Git Step By Step - Step 3: Branching
- Git:step by step 1
- iBATIS step by step 2
- Git Step by Step (1):Git 简介
- Step by Step: Event handling in C#
- Step by Step move datafile in Oracle
- Create ActiveX in .NET Step by Step
- step by step,start oracle in linux
- Create ActiveX in .NET Step by Step
- "go back" step in a workflow stops everything
- Git Step By Step - Step 1: Start Over Again
- NHibernate Step by Step
- Grunt 新手一日入门
- Enumeration
- JS开发引用HTML DOM的location和document对象
- Junit4
- android 拨打电话与发送短信
- Git Step By Step - Step 2: Go Back in Time
- nrf51822 --- 1拖8实验(2)
- C语言while循环
- 并查集/图的划分
- 剑指offer(13):打印1到最大的n位数
- android中的通过网页链接打开本地app
- java反编译工具JD-GUI使用方法
- iOS 中的 NSTimer
- SpannableStringBuilder