常用的git分支管理指令
-
查看本地分支
$git branch -
查看本地和遠程分支
$git branch –a -
更新
$git pull -
查看有沒有修改
$git status -
更新遠程分支
git remote update origin -p -
創建t-master分支
$git branch t-master -
切換到t-master分支
$git checkout t-master -
創建分支且切換到t-master分支上
$git checkout –b t-master -
提交分支到遠程
$git push –u origin t-master -
提交遠程(先更新,再看有沒有修改,再提交)
$git pull $git status $git add . $git commi –m ”備注提交內容” $git push -
分支合并(以
s-master合并t-master為例)
-
分支切換到s-master分支上
$git checkout s-master -
將t-master更新到s-master分支
$git merge t-master
更多指令請移步我的另外一篇博客:---->常用的git指令
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/297852.html
標籤:其他
上一篇:axios -- axios 是什么 & axios 特點 & json-server的介紹與服務搭建 & axios 引入
