git 命令回退到上次

首先 git log 可以查看到 

commit 1579f3ba84dece2d3a5d500fa08317458e671300
Author: zhangyudong 
Date:   Mon Sep 3 16:18:48 2018 +0800

    DOING=#152579
    [Luncher]修改底图为蓝色
    
    Change-Id: I781214b8c2e9e2d4f1451891c32f543c1aea46a1

commit 11986ef7a6a28ad4a7b7e7e0780593e0c867a996
Author: gongmingjun 
Date:   Wed Aug 9 18:27:51 2017 +0800

     revert rm car life widget
                DONE=#94552
    
    Change-Id: Ie893c9ccd905029cc3a6463f5808ab6074603610

commit 6ccd12bf84a433c7b10cb62ee614982261c8a688
Author: gongmingjun 
Date:   Thu Jul 27 14:50:33 2017 +0800

    rm car life widget
            DONE=#94552
    
    Change-Id: I194c06e4f746381942fac8ee1837aeda701d7c7c

commit 71fcfc4dd9d163ef01e34247dbcdd225319b5332

上 , 如果你要回退到上次的地方 , 看第二个commit  11986ef7a6a28ad4a7b7e7e0780593e0c867a996

然后 git  reset  11986ef7a6a28ad4a7b7e7e0780593e0c867a996

你可能感兴趣的:(git 命令回退到上次)