GIT使用日記- 分支

以下內容適用於初始化完成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>

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章