git brach // 查看本地所有分支
git branch -r // 查看远程所有分支
git checkout -b 分支名称 origin/分支名称 // 本地新建分支,拉取远程分支并且同步
git push origin 分支名 --force // 撤销已经push的最新一条的记录
git stats // 查看文件状态
git log // 查看提交历史记录
git branch <branchName> // 创建一个分支
git branch -d <branchName> // 删除一个分支
git remote -v // 查看git项目线上地址
git clone '****' // 克隆一个远程仓库作为本地仓库
git pull // 拉取远程仓库代码
git config --list // 查询用户信息
提交代码到远程仓库流程
git add .
git commit -m "注释"
git push origin main // 此处的main也许是master或是其它,需对应分支名称