git教程-还没写
安装与配置
- 安装Git
https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git - 配置用户名和密码查询全部配置
1
2git config --global user.name "your-github-name"
git config --global user.email "your-github-email"git config --list --show-origin
create增
获取远程仓库
- 将尚未进行版本控制的本地目录转换为 Git 仓库;
1.1. 初始化本地仓库git init(添加目录下所有文件)
1.2. 添加git跟踪的文件git add . - 从其它服务器 克隆 一个已存在的 Git 仓库。
2.1 使用 https:// 协议,如git clone https://github.com/username/repo.git
2.2 使用 SSH 传输协议,如git clone git@github.com:username/repo.git
delete删
update改
read查
评论