以下內容適用於初始化完成git倉庫
拿自己容易誤讀的點來說
切換分支
git checkout <分支名稱>
例:git checkout master
建立分支
git checkout -b <name>
例:git checkout -b issue#1
刪除分支
git branch -d <name>
git branch -d issue#1
注:若遠程倉庫該分支還沒有merge 則會出現提示,若執意刪除 使用 git branch -D <name>
以下內容適用於初始化完成git倉庫
拿自己容易誤讀的點來說
git checkout <分支名稱>
例:git checkout master
git checkout -b <name>
例:git checkout -b issue#1
git branch -d <name>
git branch -d issue#1
注:若遠程倉庫該分支還沒有merge 則會出現提示,若執意刪除 使用 git branch -D <name>