Question: 9 . Create a branch called test . Make some changes in the master branch. Let there be some changes in the working directory and
Create a branch called test Make some changes in the master branch. Let there be some changes in the working directory and some in the staging area. Make some changes in the test branch as well. Issue the command to show the differences for
a Working directory vs Staging area
b Working directory vs Local Repository
c Staging area vs Local Repository
d Between two commits
e Between two tags
f Local vs Remote Repository
g Master branch vs test branch
Merge the changes from test branch to master branch.
a FastForward merge
b Disabling FastForward merge
c What is the difference between option a and option b
Create a merge conflict situation. Resolve the conflict and merge the changes between the branches.
What is the difference between merge and rebase, demonstrate with an example. Explain it
With an example, demonstrate fetch, clone and pull. What is the usecase for these operations. Are they same, different? Explain.
Create a new repository in GithubGitlab with a README file. While pushing to the remote repository, if the remote branch is ahead of the local repository new file is added in remote repository, which is not there in local repository and pull is failing, how do you solve this problem?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
