【Git+Source Tree使用教程之四】Reset
来源:互联网 发布:淘宝股票代码 编辑:程序博客网 时间:2024/05/21 17:49
Here is our current repo:
With the Book has the following:
Annabel LeeBY EDGAR ALLAN POE 1809-1849Published in 1849Update AUpdate BUpdate C
But we don't like the updates A, B, and C. So, we want to forget them and back to 691923c commit which was for the "added birth & death" commit.
Double click on that commit, then we get the following menu:
Select "Reset master to this commit":
It is set to the default reset (see previous tutorial on Mixed Reset - Default), we have additional type of resets (Soft Reset - (git reset --soft <SHA key>) or Hard Reset - (git reset --hard <SHA key>)) as shown in the picture below:
If we choose the default reset, we can keep the working copy. So, the Book1 in our working directory looks like this, and it's uncommited status:
Annabel LeeBY EDGAR ALLAN POE 1809-1849Published in 1849Update AUpdate BUpdate C
The graph should look like this:
原文链接:http://www.bogotobogo.com/cplusplus/Git/Git_GitHub_Source_Tree_4_Reset.php
- 【Git+Source Tree使用教程之四】Reset
- 【Git+Source Tree使用教程之三】Git Workflow
- 【Git+Source Tree使用教程之二】Branching & Merging
- 【Git+Source Tree使用教程之一】commit & push
- Git技巧之git reset使用详解
- Git使用教程详解之四 服务器上的Git
- git教程:reset,revert
- source tree git 命令
- Git之reset
- Git使用教程(四)
- git reset 的使用
- git reset 的使用
- git reset使用
- kidd风的IOS日志之Source Tree的使用教程
- Git 之 reset 命令解析
- Git 之 reset 命令解析
- git的使用之四
- Git使用教程(四)--远程仓库
- SDAU 练习三 1001 寻找最大子序列问题(两种方法)
- 【并查集】HDU1856More is better
- 通过ffi在nodejs中调用动态链接库(.so文件)
- Android RecyclerView 使用完全解析
- C经典 Char型指针数组与字符数组的区别
- 【Git+Source Tree使用教程之四】Reset
- springcloud(第二篇)springcloud config 修改配置
- X
- 分治法——最接近点问题
- Pixate 2.0.1 for Windows / Mac 中文汉化 最适合设计师的原型工具
- kCVPixelBufferBytesPerRowAlignmentKey的使用
- 模式识别初步 - 基本概念
- TCP/IP四层体系结构及每层作用
- java常用集合及相关接口