QuestionQ16

Software Development and Design

Drag and drop the Git commands into the correct sequence to create a feature branch from master, then merge that feature branch into master.

Drag & Drop
git branch -d feature
git checkout -b feature master
git checkout master
git push origin master
git merge --no-ff feature
step 1
step 2
step 3
step 4
step 5
Explanation

Create feature from master, return to master, and merge feature with --no-ff to preserve an explicit merge commit. Push the resulting master branch to origin, then safely delete the now-merged local feature branch with git branch -d.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!