git branch operations and management

Entry after a week I finally have the output. . Although less than half an hour to upload a bug. . When can I get rid of all hands wrong
record it onto a full line and branch operations management, and so on.
Start with the master pull a feature to the local branch:

git checkout -b feature/20190708-keyrouter

After the local hum hum rip rip knock code completion, to add to the staging area:

 git add (+文件名)

:( ready to commit to the work area can check the status: git status)

 git commit -m "备注"

Cut line to pull in to the master master:

 git checkout master
 git pull

Feature to cut the branch, the master come together:

 git checkout  feature/20190708-keyrouter
 git merge master

Cut branches to master a new release branch and cut back release:

 git checkout master
git checkout -b release/20190709-motifykeywordrouter

Feature to release the cut branches come together:

 git checkout feature/20190708-keyrouter
 git merge release/20190709-motifykeywordrouter

Cut branches to release the feature together in the past:

 git checkout release/20190709-motifykeywordrouter
 git merge feature/20190708-keyrouter

Push to a remote:

git push origin release/20190709-motifykeywordrouter:release/20190709-motifykeywordrouter
Published 33 original articles · won praise 9 · views 8700

Guess you like

Origin blog.csdn.net/Serena0814/article/details/95227642