V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
notgood
V2EX  ›  问与答

Github 网页界面上可以进行回滚返回上一版本的操作吗?

  •  
  •   notgood · Oct 19, 2018 · 4963 views
    This topic created in 2747 days ago, the information mentioned may be changed or developed.
    google 了一圈,没发现有这功能
    6 replies    2018-10-20 20:49:38 +08:00
    Arnie97
        1
    Arnie97  
       Oct 20, 2018 via Android
    如果你问的是 git revert,没有。
    如果你问的是 git reset,那用 git branch -D 可以曲线救国:

    1. 分支下拉框,备份当前分支。
    2. 点开 Branches,删掉原分支。如果原分支是 HEAD,先随便换个默认分支才能删除。
    3. 打开提交历史,找到你想回滚到的状态,显示目录树。
    4. 分支下拉框,把删掉的分支建回来。
    PulpFunction
        2
    PulpFunction  
       Oct 20, 2018 via iPhone
    每个人的需求不一样

    trygit
    PulpFunction
        3
    PulpFunction  
       Oct 20, 2018 via iPhone
    有的人还想返回上上上个版本呢
    notgood
        4
    notgood  
    OP
       Oct 20, 2018 via iPhone
    @Arnie97 非常感谢,符合我的需求。

    @PulpFunction 楼上的方法不错。
    PulpFunction
        5
    PulpFunction  
       Oct 20, 2018
    学习
    PulpFunction
        6
    PulpFunction  
       Oct 20, 2018
    网页上没有这种功能吧,还不是得靠命令
    reset 是本地的文件
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4342 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:12 · PVG 12:12 · LAX 21:12 · JFK 00:12
    ♥ Do have faith in what you're doing.