@font-face{ font-family:"Times New Roman"; } @font-face{ font-family:"宋體"; } @font-face{ font-family:"Calibri"; } p.MsoNormal{ mso-style-name:正文; mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; mso-pagination:none; text-align:justify; text-justify:inter-ideograph; font-family:Calibri; mso-fareast-font-family:宋體; mso-bidi-font-family:'Times New Roman'; font-size:10.5000pt; mso-font-kerning:1.0000pt; } span.msoIns{ mso-style-type:export-only; mso-style-name:""; text-decoration:underline; text-underline:single; color:blue; } span.msoDel{ mso-style-type:export-only; mso-style-name:""; text-decoration:line-through; color:red; } @page{mso-page-border-surround-header:no; mso-page-border-surround-footer:no;}@page Section0{ margin-top:72.0000pt; margin-bottom:72.0000pt; margin-left:90.0000pt; margin-right:90.0000pt; size:595.3000pt 841.9000pt; layout-grid:15.6000pt; } div.Section0{page:Section0;}
一.拉取/提交代碼,並推送到服務器。合併代碼
git pull 拉取代碼
git commit -m “提交的描述”
git push 推送到服務端
git checkout dev-main-1.0.0 切換到dev-main-1.0.0分支
git merge dev-main-1.0.0 將dev-main-1.0.0分支合併到當前分支
二.更換git倉庫地址
更換git地址:git remote set-url origin http://192.168.x.xxx/git/xxxxx/xxxxx-web.git
三.創建本地分支並關聯遠端
git fetch 更新遠端分支到本地
git checkout dev-new-branch 切換到新分支
git checkout -b dev-new-branch_my 基於當前分支創建並切換到自己分支dev-new-branch_my
git push origin dev-new-branch_my:dev-new-branch_my 將自己分支推送到遠端 (本地:遠端)
git branch --set-upstream-to origin/dev-new-branch_my 將本地dev-new-branch_my分支關聯遠端dev-new-branch_my分支
四.拉取遠端分支到本地並關聯
git fetch origin 拉取遠端所有分之提交
git fetch origin master:dev 拉取遠端分支到本地分支dev
git branch -a 查看拉取到本地的分支列表