Record useful git command in this page.
-
search commits contains a log message
git log --all --grep "something" -
rename tag
git tag -m new old git tag -d old git push origin :refs/tags/old git push --tags -
rename branch
git branch -m old new