git branch 指令


  • 建立新的分支

    git branch <分支名稱> 只有建立新分支沒有移動過去

    git checkout -b <分支名稱> 建立新分支並且移到新分支


  • 移動到別的分支

    git checkout <分支名稱>


  • 刪除分支

    git branch -D <分支名稱>


  • 查看目前所有分支

    git branch


  • 查看遠端上的分支

    git branch -a


  • 更新本地分支資訊與 remote 同步

    git remote update -p


  • 更新本地分支資訊與 remote 同步

    git remote update -p


results matching ""

    No results matching ""