Git常用命令

2022-04-26
2054

Git

Git 常用命令:

git clone

git push

git add

git commit

git checkout

git pull

git status

git diff

git reset(回退)

git branch(创建分支)

git checkout(切换分支)

git checkout -b newtest(删除分支)

实例:

git branch 查看分支
git branch aa 添加分支aa
git checkout aa 切换到aa分支
git branch -d aa 删除aa分支
git branch -d aa 合并完后就可以删除分支