设置用户名/邮箱
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
设置ssh
$ ssh-keygen -t rsa -C "[email protected]"
拿到ssh
$ cat .ssh/id_rsa.pub
克隆已有代码
git clone
使用三部曲
git commit
git pull
git push
设置用户名/邮箱
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
设置ssh
$ ssh-keygen -t rsa -C "[email protected]"
拿到ssh
$ cat .ssh/id_rsa.pub
克隆已有代码
git clone
使用三部曲
git commit
git pull
git push