git目录初始化
#通过git init命令把这个目录变成Git可以管理的仓库
$ git init
Initialized empty Git repository in /Users/michael/learngit/.git/git clone 项目 (克隆)
$ git clone https://github.com/rovo89/XposedInstaller
或
$ git clone git@git.tigerschool.cn:android/scancode.git
把文件添加到仓库
$ git add readme.txt用命令git commit告诉Git,把文件提交到仓库
$ git commit -m "wrote a readme file"
[master (root-commit) eaadf4e] wrote a readme file
1 file changed, 2 insertions(+)
create mode 100644 readme.txt生成ssh-keygen 生成rsa公钥私钥
ssh-keygen参考资料
https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000