一.git checkout //查看当前分支$ git branch master *t2 testing //checkout会覆盖当前工作区文件和覆盖暂存区内容,所以发现分支有未提交的警告,执行git checkout master -f,强制切换后分支没提交的修改会掉失.$ git checkout master error: Your local changes to the following files would be overwritten by checkout: team/
1. checkout one branch, show status user@vbox:/mnt/tmp$ git checkout masterSwitched to branch 'master'user@vbox:/mnt/tmp$ git status# On branch master# Changes not staged for commit:# (use "git add <file>..." to update what will be commi