git
-
去git官网下载Git (git-scm.com)
-
然后安装无脑下一步,安装完成
-
在一个文件夹下点击鼠标右键git bash here
-
在本地配置userName 和userEmail
git config --global user.name "yeqianfeng" git config --global user.email "2690380103@qq.com"
可以在c:/用户/LENOVO 文件夹中查看 .gitconfig文件
-
生成连接远程仓库的公钥(连敲三次enter)
ssh-keygen - t rsa可以在c:/用户/LENOVO/.ssh/ 文件夹中 id_rsa.pub,打开复制公钥
打开gitee.com的官网进入,在我的设置中找到ssh公钥,将复制过来的公钥粘贴进去点击确定。
-
在本地文件夹下操作
git init // 初始化 git add . //上传所有文件暂存区(git add + 文件名) git commit -m // 上传至本地仓库 git remote add origin + 远程仓库地址 // 与远程仓库建立连接 git push -u origin "master" // 推送至远程仓库 //报一个本地代码与远程代码库不一致的错误 git pull --rebase origin master // 然后再推送即可 -
git clone + 远程仓库地址 // 下载远程仓库的内容
513

被折叠的 条评论
为什么被折叠?



