git config --global user.name “”//用户名
git config --global user.email “” //电子邮箱
在项目目录
touch README.md
git init
git add .
git commit -m “first commit”
git remote add origin https://github.com/…/.git //代码仓库地址
git push origin master
创建dev分支
git checkuout -b dev
git push origin dev
切换分支
git branch -a //查看所有分支
git checkout 分支名 //切换到分支