本地新建项目代码提交到远程git分支上
1、在项目的跟目录下右击 :git bash here
2、初始化本地仓库,命令:git init
3、连接GitHub远程仓库,命令:git remote add origin https://github.com/xxxxx/test.git
4、更新分支:git fetch origin --prune
5、切换分支:git checkout dev-zhaoyuan
6、添加文件,命令:git add .
然后开启idea的终端 输入下列命令
7、添加提交信息,命令:git commit -m “提交信息”
8、提交代码,命令:git push -u origin dev-zhaoyuan