git checkout -b my-test //在当前分支下创建my-test的本地分支分支
git push origin my-test //将my-test分支推送到远程
git branch --set-upstream-to=origin/my-test //将本地分支my-test关联到远程分支my-test上
git branch -a //查看远程分支
1、查看远程仓库及本地的所有分支
命令:git branch -a
2、查看本地分支
命令:git branch
2、切换分支
git checkout master
4、删除本地分支
命令:git branch -d develop
5、合并分支 讲master分支合并到当前分支下
git merge master
6、参看当前状态
git status
7、提交
git add .
git coomit -m "内容"
git pull --rebase
git push
git练习0724
最新推荐文章于 2024-07-23 14:18:55 发布