前提:本电脑已经安装了GIt插件,不会安装的请Google搜索Git安装
教程链接:(https://www.jianshu.com/p/414ccd423efc)
1:从没有提交过的新代码提交到新的远程仓库中
1.1 打开定位到代码的目录处
1.1.1 初始化代码
1 | $ git init |
1.1.2 新建本地分支
1 | $ git remote add [分支名] [Git仓库地址] |
2 | 样例: |
3 | $ git remote add origin https://github.com/xxxxx/xxxxx.git |