notgood
V2EX  ›  问与答

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

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

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

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

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