$ git config --global user.name "your name"
$ git config --global user.email "your email"
$ ssh-keygen -t rsa -C "your email" //生成密钥
$ cat .ssh/id_rsa.pub //然后复制到github的ssh
$ ssh -T git@github.com //测试链接
$git init //该目录git初始化
$git status //版本提交状态
$git add [参数] //添加文件
$git commit -m "提交内容说明" //commit到本地仓库
$git push origin master//push到远程仓库,origin指向repository
$git diff //本地仓库和工作目录的区别
$git log //commit 记录
$git clone //远程仓库checkout 到本地
git-github备忘
最新推荐文章于 2024-09-14 20:25:32 发布