git常用操作

git config --global user.name '用户名'
git config --global user.email '邮箱'
git clone '仓库地址'
git add 文件名
git commit -m '提交信息'
git push 推送至github
git pull 获取github的代码
git checkout 文件名 要找回的文件
原文地址:https://www.cnblogs.com/duansong/p/12354312.html