美文网首页
git 分支常命令

git 分支常命令

作者: unknown_7 | 来源:发表于2017-01-06 09:59 被阅读0次
git分支常用命令

新建分支
git branch testing

切换到其他分支
git checkout testing

新建并切换到分支testing
git checkout -b testing

将iss53分区合并到master分区
$ git checkout master
$ git merge iss53

查看当前分支
$ git branch
通常我们提交git的时候都是
git add .
git commit -m "some str"
git push

这三大步,而实际上,你只需要两条命令就够了,除非有新的文件要被添加进去。
git commit -am "some str"git push

相关文章

  • git 分支常命令

  • git 分支

    git 显示所有分支(包含本地和远程)命令: git 删除本地分支命令: git 显示远程分支命令: git 删除...

  • Git命令整理

    Git命令 ———————————————— git配置: git基本步骤: git分支管理: 创建分支命令: 切...

  • git管理工具

    git分支命令 git提交命令

  • Git 6 分支管理

    创建分支命令: git branch (branchname) 切换分支命令 git checkout (bran...

  • Git命令总结

    Git命令: 查看远程分支: git branch -a 查看本地分支: git branch 创建分支: ...

  • Git分支详解

    Git分支详解 git branch命令 查看分支 git branch 新建分支 git branch br...

  • Git 命令笔记

    Git 命令: 分支 查看当前分支: git branch查看远程分支: git branch -a切换分支: g...

  • GIT常用命令

    分支相关命令查看分支:git branch 创建分支:git branch 切换分支:git che...

  • git操作-常用命令

    git常用命令 查看分支 git branch 创建分支 git branch 切换分支 git ...

网友评论

      本文标题:git 分支常命令

      本文链接:https://www.haomeiwen.com/subject/kuptbttx.html