初始化仓库:git init
把文件添加到仓库:git add README.md
把文件提交到仓库:git commit -m "first commit"
关联远程仓库:git remote add origin https://xxx/xxx/demo.git
推送到远程仓库:git push -u origin master
拉取到本地:git pull origin master
查看提交日志:git log
版本回退:git reset --hard HEAD^(或commit_id)