git常用语法
设置SSH Key
ssh-keygen -t rsa -C "your_email@example.com"
认证私人密钥
ssh -T git@github.com
克隆已有仓库
git clone https://github.com/xxxxx/HelloWorld.git
或
git clone git@github.com:xxxxx/HelloWorld.git(需要输入公开密钥的密码)
查看状态
git status
提交(提交到本地仓库)
git add xxx.txt
git commit -m "注释"
更新(更新到远程仓库)
git push
浙公网安备 33010602011771号