• <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>

    如何注冊與使用GitHub

    如何注冊與使用GitHub

    東西/原料

    • GitHub

    Gihub賬號注冊和倉庫建立

    1. 1

      注冊賬號

      地址: https://github.com/
      輸入賬號、郵箱、暗碼,然后點擊注冊按鈕.

    2. 2

      注冊完當作后,選擇Free免費賬號完當作設置。

      經由過程郵箱驗證賬號。

    3. 3

      登錄,建議先讀讀Read the guide

    新建一個倉庫

    1. 1

      點擊New 

    2. 2

      輸入倉庫名,點擊建立

    3. 3

      倉庫建立當作功

    當地倉庫上傳到Github倉庫

    1. 1

      當地倉庫的建立請參考

      從零起頭教您利用VC Code 和 Git 

      0從零起頭教您利用VC Code 和 Git

    2. 2

      依據以下步調,上傳到長途倉庫


      git init

      git add .

      git commit -m "注釋語句"

      git remote add origin https://*******************

      git pull origin master

      git push -u origin master


      PS:

      中心可能會讓您輸入Username和Password,您只要輸入github的賬號和暗碼就行了。執行完后,若是沒有異常,期待執行完就上傳當作功了。

    3. 3

      呈現Error:

      解決法子:強制push當地倉庫到長途 (這種環境不會進行merge, 強制push后長途文件可能會丟掉 不建議利用此方式)

      $ git push -u origin master -f

    4. 4

      刷新,倉庫上傳當作功

    • 發表于 2020-02-08 17:01
    • 閱讀 ( 976 )
    • 分類:其他類型

    你可能感興趣的文章

    相關問題

    0 條評論

    請先 登錄 后評論
    聯系我們:uytrv@hotmail.com 問答工具
  • <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>
    久久久久精品国产麻豆