简体   繁体   中英

Git Workflow for a new empty Branch

I have a master branch with a Vue project. Now I decided to use Quasar as a CSS Framework and therefore I need a new setup/project. I want to use the same Git Repo so my Question is if there is a best practice workflow for something like this? So actually I need a new empty branch which should be later on the new master as soon as the Quasar Project is at the same level as the master.

I'm assuming that your main branch is master . If not, change the commands below to the correct branch name.

Create a new work branch:

git checkout -b quasar master

Then, modify your code (adding commits etc) and once it works, merge it back:

git checkout master
git merge quasar

If you don't change master while developing on quasar , this should work without problems. Otherwise, you might have to resolve conflicts if you modify some code in different ways on the two branches.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM