Reposit Data Structure - Branching and Merging

4 important questions on Reposit Data Structure - Branching and Merging

What is the standard merge option GIT uses.
Explain how it works (what commits are taken) and what is the benefit of GIT.

Three-way merge.
It takes only the two branch-tips and the common ancestor.
The benefit is that since GIT stores snapshots, the history between the two tips is not relevant.

What is the command for merging?

$git checkout master
$git merge "commit to merge with current master branch"

What is the command for checking the status of a merge?

$git status
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

How many pointers are created when a branch is cloned?

Two pointers.
The 'origin/master' pointer, pointing to the branch location in the original branch.
The 'master' pointer, pointing to the current branch location and moving with each new commit on that branch.

The 'origin/master' pointer moves when the cloned branch is fetched (updated with new content from the server).

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo