-
中文文档:
https://git-scm.com/book/zh/v2
-
安装 Git:
https://git-scm.com/book/zh/v2/起步-安装-Git
-
初次使用 Git 的最小化的配置
-
查看用户名、邮箱配置
git config user.name git config user.email git config --list
-
配置用户名、邮箱
git config --global user.name '你自己的用户名' git config --global user.email '你自己的邮箱'
-
-
克隆仓库
-
基于 HTTPS 协议
-
在 codeup 平台上的个人中心->个人设置->Https密码中设置克隆账号和克隆密码
-
选择 https 协议,拷贝仓库地址
-
克隆某个仓库
git clone '要克隆的路径'
-
-
基于 SSH 协议
-
配置 SSH 密钥:配置 SSH 密钥 - 云效2020 - 阿里云
-
选择 ssh 协议,拷贝仓库地址
-
克隆某个仓库
git clone '路径'
-
-
推代码步骤 :
1. git clone '地址' (把你修改过的项目替换一下)
2. git init
3. git add .
4. git commit -m '描述'
5. git push