mortonnex
V2EX  ›  问与答

gitlab 可以用命令行进行 PR 和打 tag 吗

  •  
  •   mortonnex · Oct 11, 2018 · 3179 views
    This topic created in 2773 days ago, the information mentioned may be changed or developed.
    每次都要打开网页去 PR 合代码,然后打 tag

    有更优雅更方便的方式解决吗
    2 replies    2019-08-12 16:56:23 +08:00
    zjlletian
        1
    zjlletian  
       Oct 11, 2018
    git tag
    zhushaolong
        2
    zhushaolong  
       Aug 12, 2019
    同问,说点其他的命令,可以大幅度减少更新远程分支的速度。
    ```shell
    # 首先添加 FORK 的远程分支地址
    git remote add upstream xxx # upstream 只是个名字,自己随便起
    # 然后更新 Fork 的远程分支
    git fetch upstream
    # 然后合并到自己的代码中
    git merge upstream/develop
    # 然后提交,这样就把 Fork 的项目更新到自己的分支了

    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5622 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 07:50 · PVG 15:50 · LAX 00:50 · JFK 03:50
    ♥ Do have faith in what you're doing.