When merging branches, which Git command is used to create a new commit that represents the combined changes?
- git push
- git commit
- git merge
- git branch
The correct command for merging branches and creating a new commit is git merge. This command combines the changes from different branches into the current branch, resulting in a new commit that represents the merged state.
Loading...
Related Quiz
- The strategy of _______ involves integrating changes from the main branch frequently to minimize conflicts.
- Customizing the __________ Hook can help enforce coding standards before code is pushed.
- In the context of Git, what is a 'sparse checkout' and how does it improve performance with large repositories?
- Which Git command is used to create a copy of an existing repository on your local machine?
- What advanced strategies can be used for optimizing Git operations in a continuous integration/continuous deployment (CI/CD) environment?