我的git常用命令

快速查看最近的commit id,commit message
git log --oneline

回到某个commit版本
git reset --hard <commit id>

查看所有分支,包含本地的和远程的
git branch -a

查看所有tag
git tag

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2019-2024 John Doe
  • Visitors: | Views:

请我喝杯咖啡吧~