所有之前
git config --global user.email
git config --global user.name
创建
git init
基本语句
git status 查看状态
git add 添加
git commit 注释
git rm name -r -f/–cached
//-recursive remove file 当是文件夹时
//-f force remove 强制删除,–cached to keep the file 保留文件
链接
git remote add origin git@example //一般是origin,自己起名也行
推送和下载
git push -u origin master
git clone git@example
和github链接方法
- 设置ssr
- 设置config --global
- git clone git@example 你自己的项目
- 修改文件后提交 commit
- 提交 git push -u origin master
- git用ssr提交,因为你电脑上的ssr key和github的一样,所以github会接受你电脑上的提交