检查状态
$ git status On branch master Your branch is up to date with 'origin/master'. nothing to commit, working tree clean
新建分支
$ git branch slantdirection 切换分支 $ git checkout slantdirection Switched to branch 'slantdirection' $ git status On branch slantdirection nothing to commit, working tree clean
提交代码
git push --set-upstream origin slantdirection