git _______ can be used to combine the changes made on two different branches without creating a new commit.
- merge
- squash
- rebase
- commit
Git rebase allows you to incorporate changes from one branch into another by applying each commit on the branch to the target branch. Unlike merge, it allows for a cleaner commit history by avoiding unnecessary merge commits.
Loading...
Related Quiz
- A developer wants to contribute to an open-source project on GitHub. What is the first step they should take after finding the project's repository?
- What is the role of Git in Continuous Integration (CI) workflows?
- A developer discovers that confidential files were accidentally committed to a public Git repository. What steps should be taken to resolve this?
- What is the first step you should take when encountering a merge conflict in Git?
- In migrating a large codebase to Git, what factors influence the choice of using a monorepo versus multiple smaller repositories?