<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [TOC] # [git 教程]([https://www.yuque.com/docs/share/0f91ee08-abee-4846-a6c5-42be69b816d4#rylidu](https://www.yuque.com/docs/share/0f91ee08-abee-4846-a6c5-42be69b816d4#rylidu)) # git stash和git stash pop git stash 可用來暫存當前正在進行的工作, 比如想pull 最新代碼, 又不想加新commit, 或者另外一種情況,為了fix 一個緊急的bug,? 先stash, 使返回到自己上一個commit, 改完bug之后再stash pop, 繼續原來的工作。 基礎命令: **$git stash $do some work $git stash pop** 進階: git?stashsave?"work in progress for foo feature" **當你多次使用’git stash’命令后**,你的棧里將充滿了未提交的代碼,這時候你會對將哪個版本應用回來有些困惑, ’**git stash list**’ 命令可以將當前的Git棧信息打印出來,你只需要將找到對應的版本號,例如使用’**git stash apply stash@{1}’就可以將你指定版本號為stash@{1}的工作取出來**,當你將所有的棧都應用回來的時候,可以使用’**git stash clear**’來將棧清空。 ~~~ git stash # save uncommitted changes # pull, edit, etc. git stash list # list stashed changes in this git git show stash@{0} # see the last stash git stash pop # apply last stash and remove it from the list git stash --help # for more info ~~~ # 版本回退 **git推送到遠程錯誤的文件怎么處理** > 1. 先回退到前一個版本: > > > git reset --hard HEAD^ > > 2. 然后強制推送當前這個版本到云端 > > > git push origin HEAD --force # git撤回到任意位置 1、運行`git reflog`命令查看你的歷史變更記錄 ![在這里插入圖片描述](https://img-blog.csdnimg.cn/20181120180507371.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTEyOTYxNjU=,size_16,color_FFFFFF,t_70) 2.然后用`git reset --hard HEAD@{n}`,(n是你要回退到的引用位置)回退。 比如上圖可運行`git reset --hard 40a9a83`
                  <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>

                              哎呀哎呀视频在线观看