git init
git add .
git commit -m 'msg'
git checkout dev 切换本地分支
git push --set-upstream origin dev 建立和远端的dev的连接