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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *