<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 服務器端的github倉庫設置 由于,在服務器端已經先有了網站項目,需要在現有的情況下創建倉庫,所以需要格外注意一些事項。希望全部管理所有的網站項目,因此在所有網站的WEB目錄建立倉庫。 www.hzshuangmei.com在服務器上面的存放路徑是 `/alidata1/web/www.hzshuangmei.com`,m.hzshuangmei.com的存放路徑是`/alidata1/web/m.hzshuangmei.com`。所以將`/alidata1/web/`作為倉庫跟目錄。 建議參考 > https://chaihongjun.me/os/linux/184.html 先升級服務器git,下面是服務器端的"本地倉庫"初始化設置 ~~~ #為了方便服務器端的同步,使用SSH方式,先為服務器和github之間新建SSH鏈接 ssh-keygen -t rsa -b 4096 -C "your_email@example.com" #然后一路默認回車即可,默認在/"your home"/.ssh/目錄下創建3個文件,如果是root用戶,就是/root/.ssh/目錄 #分別是 id_rsa # id_rsa.pub # known_hosts # 然后復制 id_rsa.pub內的內容 # 再回到 https://github.com/settings/keys, 點擊”NEW SSH KEY“,將剛才那個 id_rsa.pub的內容復制到**key**中 # title 隨意命名,接著回到服務器端 cd /alidata1/web cd .git vi config # 將url = https://github.com//wlborg/hzshuangmei.com.git 改成 url = ssh://git@github.com/wlborg/hzshuangmei.com.git # 再回到倉庫根目錄 cd /alidata1/web touch .gitignore #先建立一個忽略文件過濾設置的文件,建議通過FTP等工具先上傳,本示例使用詳情見后面的描述 git init git add . git commit -m "第一次初始化" git push origin master ~~~ 上述過程會遇到提示輸入"yes" 之類,請按照提示”yES“即可。這樣服務器端的文件就同步到了github遠程端了,也就是第一次的初始化完成了。后面,我們將從github下載一個分支來做本地維護。 附錄gitignore文件: ~~~ /components/ /default*/ *.html *.tar.gz *.tar !*.php !*.css !*.js .txt .project .buildpath composer.json /www.hzshuangmei.com/a/ /m.hzshuangmei.com/a/ data/ about/ activity/ brand/ cases/ doctors/ environment/ equipment/ honors/ install/ /www.hzshuangmei.com/m/ /m.hzshuangmei.com/m/ news/ pma/ projects/ special/ uploads/ video/ wenzhang/ backupdata/ cache/ tplcache/ sessions*/ ~~~ 可能遇到的問題: 1. 如果我修改了服務器的gitignore文件,怎么樣能重新生效?(實際上是讓遠程倉庫也更新) 這個網上方法很多,直接在服務器: ~~~ git rm -r --cached . #清除緩存 git add . #重新trace file git commit -m "update .gitignore" #提交和注釋 git push origin master #可選,如果需要同步到remote上的話,建議操作一下 ~~~
                  <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>

                              哎呀哎呀视频在线观看