設置用戶名/郵箱
$ 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