<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                一)本地分支版本回退的方法 ![](https://box.kancloud.cn/01dfad63ad2fdbb23bbb80518bd5fae7_700x524.png) 前提:已經執行了git commit提交到本地倉庫,但是還沒有git push到遠程倉庫,可以用以下命令回退 回退到上一個版本: git reset --hard HEAD^ 回退到指定版本 [root@static yyg]# git log --oneline ----》查看commitID號 5c89e15 delete file f1ced32 add uu.html 032c562 add tt ll 1ed7eb8 add ee ff 5b4fdda modify 01 index.html 4cc54a8 modify 01 app.html 001d7c6 modify app.html cf8c333 modify app.html 827c7ef add app.html 07ea95a add index.html 66f0c74 add b.html e76d252 add a.html 51d123f first commit [root@static yyg]# git reset --hard f1ced32---》版本回退到指定commit版本 HEAD is now at f1ced32 add uu.html 3)git reflog的作用 當你提交了好多版本,比如commit1,commit2,commit3,commit4等,此時你回退到版本commit2,當你明天的時候,你突然想回退到commit3,你通過git log --oneline就看不到,此時就可以通過執行git reflog查看咯 [root@static yyg]# git reflog f1ced32 HEAD@{0}: reset: moving to f1ced32 5c89e15 HEAD@{1}: reset: moving to 5c89e15 c5a49ff HEAD@{2}: pull: Fast-forward 5c89e15 HEAD@{3}: reset: moving to 5c89e15 c5a49ff HEAD@{4}: commit: add bb.html 84e76c6 HEAD@{5}: commit: add aa.html 5c89e15 HEAD@{6}: commit: delete file f1ced32 HEAD@{7}: commit: add uu.html 032c562 HEAD@{8}: checkout: moving from 319c1b8a326f14298ed414d4eb6f1cef07136c4c to master 319c1b8 HEAD@{9}: commit: add uu 032c562 HEAD@{10}: checkout: moving from 5b4fddaf0ac117a0c71c93fbe5957b343946845c to 1.2 5b4fdda HEAD@{11}: checkout: moving from 032c562fa7cd2c5f476c7041288bedf48b3c82cf to 1.0 032c562 HEAD@{12}: checkout: moving from master to 1.2 032c562 HEAD@{13}: commit: add tt ll 1ed7eb8 HEAD@{14}: commit: add ee ff 5b4fdda HEAD@{15}: commit: modify 01 index.html 4cc54a8 HEAD@{16}: commit: modify 01 app.html 001d7c6 HEAD@{17}: commit: modify app.html cf8c333 HEAD@{18}: commit: modify app.html 827c7ef HEAD@{19}: commit: add app.html 07ea95a HEAD@{20}: commit: add index.html 66f0c74 HEAD@{21}: clone: from gitlab@git.91als.net:root/yyg.git [root@static yyg]# 二)自己的遠程分支版本回退的方法 如果把錯誤提交已經推送到遠程分支咯,那么就需要回退遠程分支 1)git reflog 查看commitid 2)[root@static yyg]# git reset --hard 51d123f 3)強制推送到遠程分支 [root@static yyg]# git push origin master -f (注意:如果遠程倉庫的有問題,個人建議直接找到這個錯誤提交是誰提交到遠程的,然后其修改本地的代碼,然后重新提交一份到遠程倉庫里)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看