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

 

posted @ 2022-04-26 14:58  土豆365  阅读(39)  评论(0)    收藏  举报