常用指令

  • 初始化資料夾

    git init


  • 存入 index

    git add <file> 或是

    git add .


  • 從 index 移到 local repostory(本地倉庫)

    git commit -m "文字敘述"


  • 將資料上傳前要先拉下最新的料 或是 在 master 建立分支前也要拉下新資料在建立

    git pull origin 分支名稱


  • 將資料上傳前要先拉下最新的料 或是 在 master 建立分支前也要拉下新資料在建立

    git pull origin 分支名稱


  • 上資料上傳到遠端倉庫

    git push origin 分支名稱


  • 從遠端倉庫將資料下載回 working

    git clone <url>


results matching ""

    No results matching ""