--local // 本地仓库 .git/config
--global // 全局生效 ~/.gitconfig
git config --list --show-origin
git init // 初始化
git add *.md // 新增暂存文件
git commit -m "message" // 提交文件,-m 提交信息 -a 添加新文件,等同于add命令
git commit --amend // 撤销刚才对提交
git status // 查看仓库状态对文件对更改
git reset HEAD <file> // 取消暂存
git checkout -- filename // 撤销
git remote // 查看远程仓库
git remote add <shortname> <url> // 添加一个新的远程git仓库
git remote remove <shortname> // 删除一个远程仓库
git remote rename <shortname> <new_shortname> // 重命名
git fetch <remote> // 抓取远程仓库
git push -u origin <branch name> // 推送到远程分支