Git 命令速查
发布: · 更新:
整理一些日常最常用的 Git 命令,适合快速查阅。
查看状态
git status
git log --oneline --decorate -n 10
提交修改
git add .
git commit -m "update"
同步远程
git pull --rebase origin main
git push origin main
分支操作
git branch
git switch -c feature/test
git switch main