工作区 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
原文:https://www.cnblogs.com/Lemonades/p/12540586.html