git分支提交

pfeiliu / 2023-05-14 / 原文

加入有两个分支,dev和主分支master

首先,我们在dev分支修改了东西

git add .

git commit -m "update info"

然后切换到主分支master

git merge dev

git push origin master

在git push之前最好先git pull一下,防止冲突