<> Feature branching – A feature branch model keeps all of the changes for a particular feature inside of a branch. When the feature is fully tested and validated by automated tests, the branch is then merged into master.
<> Task branching – In this model, each task is implemented on its own branch with the task key included in the branch name. It is easy to see which code implements which task, just look for the task key in the branch name.
<> Release branching – Once the develop branch has acquired enough features for a release, you can clone that branch to form a Release branch. Creating this branch starts the next release cycle, so no new features can be added after this point, only bug fixes, documentation generation, and other release-oriented tasks should go in this branch. Once it is ready to ship, the release gets merged into master and tagged with a version number. In addition, it should be merged back into the develop branch, which may have progressed since the release was initiated.
<> In the end tell them that branching strategies vary from one organization to another so I know basic branching operations like delete, merge, checking out a branch, etc.
Posted Date:- 2021-10-18 06:55:26
How to remove untracked files in Git ?
How to squash the last N commits into a single commit?
What is Git bisect? How does it help to determine the source of a (regression) bug?
Explain the role of the git annotate command.
Explain the role of the git-add command.
How will you remove a file from Git without actually removing it from your local filesystem?
What is the syntax for rebasing?
What’s the difference between rebase and merge? When should you rebase and when should you merge?
What is ‘bare repository’ in GIT?
What is ‘bare repository’ in GIT?
What does a Commit object contain?
What is the difference between Git stash apply and Git stash pop?
Explain the functions of the git reset –mixed and git merge –abort commands.
Why is it advisable to create an additional commit rather than amending an existing commit?
How can you fix a broken commit?
Mention some of the best graphical GIT client for LINUX?
What are the functionalities of git reset --mixed and git merge --abort?
Can you recover a deleted branch in Git?
Why are the Git Stash Drop and Git Stash Clear commands used?
What is the difference between git checkout [branch name] and git checkout -b [branch name]?
How will you find out what all files have been changed in a particular Git commit?
State the difference between HEAD, working tree, and index.
Will you create an additional commit or amend an existing commit?
How to resolve and solve merge conflicts?
What are the constituents of the commit object contain?
How to identify if a certain branch has been merged into master?
What is the difference between resetting and reverting?
How to deal with huge binary files in Git?
What are the different ways you can refer to a commit?
In Git, how would you return a commit that has just been pushed and made open?
What does ‘hooks’ comprise of in Git?
Why is it desirable to create an additional commit rather than amending an existing commit?
How will you know in Git if a branch has already been merged into master?
What is the use of git instaweb?
What is a conflict in Git and how to resolve it?
Name some Basic Operations in Git.
Describe the branching strategies you have used.
How to revert a bad commit which is already pushed?
What does a commit object contain?
How do you find a list of files that have changed in a particular commit?