![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
exception_index
If you can't explain it simply, you don't understand it well enough!
展开
-
Git克隆远程仓库的项目到本地
一、将远程仓库克隆到本地仓库1.第一步:创建SSH Key,默认生成在c盘(有可能不在c盘,可能在当前目录,要把生成的id_rsa和id_rsa.pub这两个文件拷贝到c盘的.ssh文件夹下面)。由于本地仓库与远程仓库是通过SSH方式加密,所以需要生成SSH Key。$ ssh-keygen -t rsa -C "1416841861@qq.com"在c盘下:C:\Users\Adm...原创 2018-07-21 10:53:21 · 17918 阅读 · 0 评论 -
Git将本地的仓库上传至码云
需要条件:1)码云上面有和本地名字相同的仓库2)码云上面的仓库的文件夹内为空1.创建一个仓库$ mkdir learngit$ cd learngit2.初始化一个Git仓库,使用git init命令。会生成一个.git文件,加入版本控制$ git init3.创建并编辑文件$ vim readme.txt4.将文件添加至暂存区,接着将文件提交至分支...原创 2018-07-21 11:21:21 · 198 阅读 · 0 评论 -
Git常用命令
一.文件相关1.将文件添加至远程仓库$ git add readme.txt$ git commit -m "description"$ git push origin master使用命令git add <file>,注意,可反复多次使用,添加多个文件;使用命令git commit -m <message>,完成。添加仓库下所有的文件$ gi...原创 2018-07-21 11:28:46 · 116 阅读 · 0 评论