0
点赞
收藏
分享

微信扫一扫

本地新建项目代码提交到远程分支上

夏天的枫_ 2022-12-19 阅读 135


本地新建项目代码提交到远程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


举报

相关推荐

0 条评论