branch
1、删除分支
git branch -d branch_name
error: The branch 'branch_name' is not fully merged.
If you are sure you want to delete it, run 'git branch -D branch_name'.
2、重命名分支
git branch -m ord_branch_name new_branch_name
3、比较分支的不同
git diff branch1 branch2 . branch1和branch2 的不同
git diff branch_name . branch_name 和当前分支的不同
4、剪切别分支的文件
git checkout master -- xxx/xxx.txt