git如何设置master分支的权限_Git 从master 分支拉新分支开发
生活随笔
收集整理的這篇文章主要介紹了
git如何设置master分支的权限_Git 从master 分支拉新分支开发
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、 切換到被copy的分支(master),并且從遠端拉取最新版本
$git checkout master
$git pull
二、從當前分支拉copy開發分支
$git checkout -b dev
Switched to a new branch 'dev'
三、 把新建的分支push到遠端
$git push origin dev
四、拉取遠端分支
$git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/ dev
經過驗證,當前的分支并沒有和本地分支關聯,根據提示進行下一步:
五、關聯
$git branch --set-upstream-to=origin/dev
六、 再次拉取 驗證
$git pull
總結
以上是生活随笔為你收集整理的git如何设置master分支的权限_Git 从master 分支拉新分支开发的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 非常有用的微信公众号平台开发各种错误返回
- 下一篇: 思源黑体字体问题