码迷,mamicode.com
首页 > 其他好文 > 详细

git本地仓库和远程仓库关联

时间:2019-03-21 10:27:16      阅读:312      评论:0      收藏:0      [点我收藏+]

标签:gitignore   https   文件   comm   nbsp   git push   read   init   python   

1、创建远程仓库

2、初始化本地仓库git init     git add .     git commit  -m "desc"

3、关联远程仓库  git remote add origin https://gitee.com/lp369/mypython.git

4、第一次先拉取远程库中的README.md和.gitignore等文件     git pull --rebase origin master

5、提交本地代码git push origin master

git本地仓库和远程仓库关联

标签:gitignore   https   文件   comm   nbsp   git push   read   init   python   

原文地址:https://www.cnblogs.com/lp0636/p/10569816.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!