Branching Merging Workflows MCQs with Answers and Explanations

Practice Branching Merging Workflows MCQs. from DevOps subject. with solved answers and explanations. updated syllabus-based questions.

Search MCQs, Papers, Topics

Loading MCQs...
AI hard

Question 1: What is the difference between `git rebase` and `git merge`?

git merge combines branches while preserving all commit history, creating a merge commit. git rebase rewrites commits by replaying them on top of another branch, creating a linear history without merge commits.

Git Rebase Git Merge Git Version Control Branching
AI hard

Question 2: What is "trunk-based development" in version control?

Trunk-based development is a source control practice where developers integrate small, frequent commits into a single main branch (trunk). It promotes CI, reduces merge conflicts, and is a prerequisite for effective continuous integration.

Trunk Based Development Version Control Devops Git Branching
AI medium

Question 3: Which Git workflow strategy involves having a `develop` branch in addition to `main`?

Gitflow is a Git branching model that uses a develop branch for ongoing development alongside the main branch. It also uses feature, release, and hotfix branches to manage the full release lifecycle.

Gitflow Branching Devops Develop Branch Git Workflow
AI easy

Question 4: In Git, what does the command `git merge` do?

git merge integrates changes from one branch into the current branch. It is commonly used to combine feature branches back into the main or develop branch.

Git Git Merge Branching Merging Version Control

Showing 1 to 4 of 4 results