19) What is the purpose of branching in GIT? The purpose of branching in GIT is that you can create your own branch and jump between those branches. It will allow you to go to your previous work keeping your recent work intact. 20) What is the common branching pattern in GIT? The common way of creating branch in GIT is to maintain one as “Main" branch and create another branch to implement new features. This pattern is particularly useful when there are multiple developers working on a single project. 21) What is a ‘conflict’ in git? A ‘conflict’ arises when the commit that has to be merged has some change in one place, and the current commit also has a change at the same place. Git will not be able to predict which change should take precedence. 22) How can conflict in git resolved? To resolve the conflict in git, edit the files to fix the conflicting changes and then add the resolved files by running “git add” after that to commit the repaired merge, run “git commit”. Git remembers that you are in the middle of a merger, so it sets the parents of the commit correctly. 23) To delete a branch what is the command that is used? Once your development branch is merged into the main branch, you don’t need development branch. To delete a branch use, the command “git branch –d [head]”. 24) What is another option for merging in git? “Rebasing” is an alternative to merging in git. 25) What is the syntax for “Rebasing” in Git? The syntax used for rebase is “git rebase [new-commit] “ 26) What is the difference between ‘git remote’ and ‘git clone’? ‘Git remote add’ just creates an entry in your git config that specifies a name for a particular URL. While, ‘git clone’ creates a new git repository by copying and existing one located at the URI. 27) What is GIT version control? With the help of GIT version control, you can track the history of a collection of files and includes the functionality to revert the collection of files to another version. Each version captures a snapshot of the file system at a certain point of time. A collection of files and their complete history are stored in a repository.
19) What is the purpose of branching in GIT?
The purpose of branching in GIT is that you can create your own branch and jump
between those branches. It will allow you to go to your previous work keeping your recent work
intact.
20) What is the common branching pattern in GIT?
The common way of creating branch in GIT is to maintain one as “Main"
branch and create another branch to implement new features. This pattern is particularly useful when
there are multiple developers working on a single project.
21) What is a ‘conflict’ in git?
A ‘conflict’ arises when the commit that has to be merged has some change in
one place, and the current commit also has a change at the same place. Git will not be able to predict
which change should take precedence.
22) How can conflict in git resolved?
To resolve the conflict in git, edit the files to fix the conflicting changes and then
add the resolved files by running “git add” after that to commit the repaired merge, run “git commit”.
Git remembers that you are in the middle of a merger, so it sets the parents of the commit correctly.
23) To delete a branch what is the command that is used?
Once your development branch is merged into the main branch, you don’t need
development branch.
To delete a branch use, the command “git branch –d [head]”.
24) What is another option for merging in git?
“Rebasing” is an alternative to merging in git.
25) What is the syntax for “Rebasing” in Git?
The syntax used for rebase is “git rebase [new-commit] “
26) What is the difference between ‘git remote’ and ‘git clone’?
‘Git remote add’ just creates an entry in your git config that specifies a name for a
particular URL. While, ‘git clone’ creates a new git repository by copying and existing one located at
the URI.
27) What is GIT version control?
With the help of GIT version control, you can track the history of a collection of
files and includes the functionality to revert the collection of files to another version. Each version
captures a snapshot of the file system at a certain point of time. A collection of files and their
complete history are stored in a repository.
Comments
Post a Comment