天天看點

git21天打卡day07:切換到建立的本地分支21天 Git打卡,第1期07天0516

點選此處跳轉打卡作業原位址https://m.qlchat.com/wechat/page/detail-little-graphic?topicId=2000009807404080

21天 Git打卡,第1期07天0516

2020年05月16日軟體測試圈「每日進階」

7

1)切換到你建立的本地分支

指令 git checkout idoxu

2)檢視目前所在的分支

指令 git branch

效果:

[[email protected] gittest]# git checkout idoxu

Switched to branch ‘idoxu’

[[email protected] gittest]# git branch

  • idoxu

    master

進入代碼倉庫:

[[email protected] ~]$ cd istester_git/gittest
           

檢視目前分支:

[[email protected] gittest]$ git branch
* master
  tuxiaomao
           

【1】git checkout tuxiaomao

[[email protected] gittest]$ git checkout tuxiaomao
切換到分支 'tuxiaomao'
           

【2】git branch

[[email protected] gittest]$ git branch
  master
* tuxiaomao
           
git21天打卡day07:切換到建立的本地分支21天 Git打卡,第1期07天0516