git Feature branch

Each time a new feature is added, it is best to create a new feature branch, develop on it, merge it after completion, and finally delete the feature branch.

New branch:

$ git checkout -b feature-vulcan

Submit after development:

$ git add vulcan.py
$ git status
$ git commit -m "add feature vulcan"

switch branch, ready to merge

$ git checkout dev
$ git merge feature-vulcan

Summarize:

To develop a new feature, it is best to create a new branch;

If you want to discard a branch that has not been merged, you can git branch -D <name>delete it by force.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324855192&siteId=291194637