1. 在新建分支之前确保本地代码和远程代码相同
2.下面是新建分支的代码
>git checkout -b HotApp_new_year //后面的名字是任意起的, 该条命令的含义是 新建分支,并且切换到新建的分支上
Switched to a new branch 'HotApp_new_year'
3.查看状态
>git status
On branch HotApp_new_year
Your branch is up to date with 'origin/HotApp_new_year'.
nothing to commit, working tree clean
4.把新建的分支push到远程。