git 使用

52 阅读1分钟

1、全局账户名 git config --global user.name "用户名" git config --global user.email "username@163.com" //邮箱 2、SSH Key生成 ssh-keygen -o -t rsa -b 4096 -C 用户邮箱 3、拷贝项目 git clone ssh地址/http地址 4、基本原理

sequenceDiagram
远程仓库->>本地仓库: pull(fetch+merge) fetch/clone
本地仓库->>本地目录: checkout 
本地目录->> 暂存区: add
暂存区->>本地仓库: commit
本地仓库->>远程仓库: push