首页 > 其他 > 详细

重新学一下git

时间:2020-03-21 18:53:31      阅读:61      评论:0      收藏:0      [点我收藏+]

工作区  git add . > 暂存区 git commit -m> 本地库 git push -u origin master > 远程库

 

1、git命令行操作

  本地库操作  远程库操作

常用命令:https://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html

       https://www.jianshu.com/p/d220c88bb516

实战:

  没有仓库,创建一个仓库,并连接到远程仓库

mkdir vue-nav
cd vue-nav
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/giteeCopyGithub/vue-nav.git
git push -u origin master

 

  有仓库,连接到远程仓库

cd existing_git_repo
git remote add origin https://gitee.com/giteeCopyGithub/vue-nav.git
git push -u origin master

 

  配置ssh免密码登录。

  将本地仓库连接到远程仓库,或者下载远程源代码:  https://blog.csdn.net/u013372487/article/details/52925960

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

技术分享图片

重新学一下git

原文:https://www.cnblogs.com/Lemonades/p/12540586.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!