Posts git 分支
Post
Cancel

git 分支

  • git btanch 查看分支
  • git checkout -b user 创建并切换到一个新的分支
  • git status 查看当前工作台状态
  • git checkout xx 切换到某一个分支
  • git merge xx 当前分支合并 xx 分支 只是本地合并,还要推送到云端 git push

git push

  • 如果是新建的分支,云端仓库没有该分支 git push -u origin xx 否则,可直接 git push
  • 从 A 分支新建一个 B 分支, 然后可直接git push -u origin B 到云端仓库。
This post is licensed under CC BY 4.0 by the author.

Contents

Trending Tags