原则:了解每一条命令的作用并积累一些实际的操作经验
实战中使用过的命令详解
1.git push origin
https://www.cnblogs.com/zl1991/p/7800108.html
git push origin
将当前分支推送到origin主机的对应分支(对应分支之前已经指定)
2.git push -u origin master
git push -u origin master
将本地的master分支推送到origin主机的master分支。如果master不存在,则会被新建。
同时指定origin为默认主机
3.git push 命令的含义与格式
https://www.yiibai.com/git/git_push.html
4.Git 里面的 origin 到底代表啥意思?
origin指向的就是你本地的代码库托管在Github上的版本。(本地代码库对应的远程代码库)
https://www.zhihu.com/question/27712995/answer/39946123
5.git remote的用法
https://blog.csdn.net/north1989/article/details/53314345
本地创建的代码与远程仓库建立连接:
git remote add origin https://gitee.com/potatobeancox/spring-boot-study.git
上面这个git操作解释
git remote
为了便于管理,Git要求每个远程主机都必须指定一个主机名。git remote命令就用于管理主机名
git remote add
git remote add [shortname] [url]
添加远程仓库
git remote add origin https://gitee.com/potatobeancox/spring-boot-study.git
添加远程仓库,并将给定的url 命名为origin,也就是为origin 建立一个远程的git连接
下面这个连接对上面这个命令解释和详细
https://blog.csdn.net/north1989/article/details/53314345
https://blog.csdn.net/zy00000000001/article/details/70505150