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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # Git 操作 ## git 命令 * 創建本地倉庫 ``` git init ``` * 獲取遠程倉庫 ``` git clone [url] 例:git clone https://github.com/you/yourpro.git ``` * 創建遠程倉庫 ``` // 添加一個新的 remote 遠程倉庫 git remote add [remote-name] [url] 例:git remote add origin https://github.com/you/yourpro.git origin:相當于該遠程倉庫的別名 // 列出所有 remote 的別名 git remote // 列出所有 remote 的 url git remote -v // 刪除一個 renote git remote rm [name] // 重命名 remote git remote rename [old-name] [new-name] ``` * 從本地倉庫中刪除 ``` git rm file.txt // 從版本庫中移除,刪除文件 git rm file.txt -cached // 從版本庫中移除,不刪除原始文件 git rm -r xxx // 從版本庫中刪除指定文件夾 ``` * 從本地倉庫中添加新的文件 ``` git add . // 添加所有文件 git add file.txt // 添加指定文件 ``` * 提交,把緩存內容提交到 HEAD 里 ``` git commit -m "注釋" ``` * 撤銷 ``` // 撤銷最近的一個提交. git revert HEAD // 取消 commit + add git reset --mixed // 取消 commit git reset --soft // 取消 commit + add + local working git reset --hard ``` * 把本地提交 push 到遠程服務器 ``` git push [remote-name] [loca-branch]:[remote-branch] 例:git push origin master:master ``` * 查看狀態 ``` git status ``` * 從遠程庫中下載新的改動 ``` git fetch [remote-name]/[branch] ``` * 合并下載的改動到分支 ``` git merge [remote-name]/[branch] ``` * 從遠程庫中下載新的改動 ``` pull = fetch + merge git pull [remote-name] [branch] 例:git pull origin master ``` * 分支 ``` // 列出分支 git branch // 創建一個新的分支 git branch (branch-name) // 刪除一個分支 git branch -d (branch-nam) // 刪除 remote 的分支 git push (remote-name) :(remote-branch) ``` * 切換分支 ``` // 切換到一個分支 git checkout [branch-name] // 創建并切換到該分支 git checkout -b [branch-name] ``` ##與github建立ssh通信,讓Git操作免去輸入密碼的繁瑣。 * 首先呢,我們先建立ssh密匙。 > ssh key must begin with 'ssh-ed25519', 'ssh-rsa', 'ssh-dss', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', or 'ecdsa-sha2-nistp521'. -- from github 根據以上文段我們可以知道github所支持的ssh密匙類型,這里我們創建ssh-rsa密匙。 在command line 中輸入以下指令:``ssh-keygen -t rsa``去創建一個ssh-rsa密匙。如果你并不需要為你的密匙創建密碼和修改名字,那么就一路回車就OK,如果你需要,請您自行Google翻譯,因為只是英文問題。 >$ ssh-keygen -t rsa Generating public/private rsa key pair. //您可以根據括號中的路徑來判斷你的.ssh文件放在了什么地方 Enter file in which to save the key (/c/Users/Liang Guan Quan/.ssh/id_rsa): * 到 https://github.com/settings/keys 這個地址中去添加一個新的SSH key,然后把你的xx.pub文件下的內容文本都復制到Key文本域中,然后就可以提交了。 * 添加完成之后 我們用``ssh git@github.com`` 命令來連通一下github,如果你在response里面看到了你github賬號名,那么就說明配置成功了。 *let's enjoy github ;)* ## gitignore --- 在本地倉庫根目錄創建 .gitignore 文件。Win7 下不能直接創建,可以創建 ".gitignore." 文件,后面的標點自動被忽略; ``` /.idea // 過濾指定文件夾 /fd/* // 忽略根目錄下的 /fd/ 目錄的全部內容; *.iml // 過濾指定的所有文件 !.gitignore // 不忽略該文件 ```
                  <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>

                              哎呀哎呀视频在线观看