git log —graph —all -p —decorate —abbrev-commit
—graph 以图像显示
—all 显示所有分支
—decorate 显示所有分支名和 tag 名
—abbrev-commit 只显示简短的 hash 值
-p 显示提交的文件差异
git rebase -i hash
git fetch origin -t
git push origin --tags
(将 orgin tag 更新至 new orign)
git fetch origin --t && git push new-origin --tags && git tag -l | xargs git tag -d && git fetch
git tag -l | xargs git tag -d
git tag | grep ZICE | xargs -n 1 git push --delete origin
git fetch
1. git reset --hard HEAD~1
2. git push --force
git rebase -i 'hash'
git checkout -f && git clean -xdf && git pull
原文:https://www.cnblogs.com/herojl/p/11889837.html