What commands will you use to bring a new feature to the main branch?
Answer Posted / 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 |
Post New Answer View All Answers