git本地文件和远程分支绑定

论坛 期权论坛 脚本     
匿名技术用户   2021-1-12 13:53   328   0

1. 先从github克隆到本地

 git clone https://github.com/kong/springcloud.git


 git clone git@github.com:用户名/项目名.git

2.

git init

3. 添加所有文件

git add .

4. 提交

git commit -m " update "

5. 连接远程仓库

git remote add origin https://github.com/kong/springcloud.git 

6. 把本地项目推送到远程仓库

git push -u origin master 

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP