What commands will you use to bring a new feature to the main branch?
Answer / Avnindra Vaidhya
1) Create a new branch for the feature development: `git checkout -b my-feature-branch`. 2) Commit changes in the new branch. 3) Push the branch to the remote repository: `git push origin my-feature-branch`. 4) Once the code review is done and the feature is tested, merge it into the main branch: `git checkout main`, then `git merge my-feature-branch`. If there are any merge conflicts, resolve them, commit, and push again.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the command you can use to write a commit message?
what is git fork? What is difference between fork and branch? How to create tag?
Name a few git commands?
How will you know in GIT if a branch has been already merged into master?
What is a git commit and what does the commit object contain?
What is the common branching pattern in GIT?
Explain what is commit message?
What is a repository and how will you create it?
Describe the branching strategies you have used.
What is the function of ‘git stash apply’?
How to rebase master in git?
What is the syntax for “Rebasing” in Git?