// 修改线上或者其他分支内容 在当前分支下 创建新分支 hotfix[修改内容]
eg:pre内容出现bug
git checkout pre // 切换到pre分支下
git pull // 更新为最新代码
git checkout -b fix/route // 创建并切换到fix/route/分支
git pull // 更新fix/route代码为最新pre分支内容
git branch -vv // 查看关联情况
git status //
git add . //
git commit -m "fix(path): 预发布环境菜单配置"
git checkout pre // 切换到pre下
git merge fix/route // merge fix/route分支内容
git pull // 拉去最新merge代码
git push // 推送到远程分支
git checkout dev // 切换到dev分支
git merge fix/route // merge 最新fix/route分支内容
git push origin -d feature-freight_template // 删除远程分支
git branch -d feature-freight_template // 删除本地分支
// 创建新功能(feature--功能分支)
feature/dev_refresh_molierzhang
merge request master
git branch -a //查看远程分支
git checkout -b charles
git push -u origin charles:charles
/* dev-charles-master */
git checkout charles
git pull origin dev
git push -u origin charles:remote_branch
// git push origin local_branch:remote_branch ( 本地分支 : 远程分支 )