常用操作
git clone [repo_link]
git init -b [分支名]
git add [文件或者文件夹]
git commit -m "提交注释"
git commit --amend -m "提交注释"
git remote add [远程仓库名称] [远程仓库地址]
git remote rename|remove|set-url
git push -u [远程仓库名称] [分支名]
git push [远程仓库名称] [分支名]
git push
git pull [远程仓库名称] [分支名]
git fetch
git rm --cached [文件名]
git commit --amend --no-edit
查看操作
git status
git branch -all
git diff [文件名]
git diff --cached
git remote -v
git remote show
git log -[数字]
git log --oneline
git log --graph
git log --stat
git log --patch|-p
git log --after="2026-01-01" --before="2026-01-31"
git log --author=[作者]
git --grep=[]
git reflog
git tag
git show [标签名] 查看某个特定标签的详细信息