回滚提交
git reset HEAD~
git push origin branchName -f使用 git-token 下载仓库
git clone https://<user-name>:<git-token>@<github-path.git>
对比文件
git diff --no-index file1 file2
让 git 停止跟踪(但保留本地文件)
git rm -r --cached file1
git reset HEAD~
git push origin branchName -fgit clone https://<user-name>:<git-token>@<github-path.git>
git diff --no-index file1 file2
git rm -r --cached file1