A git _______ is used to combine multiple commits into a single commit for a cleaner history.
- merge
- squash
- combine
- join
The correct option is squash. The git squash command is used during interactive rebase to combine multiple commits into a single commit. It helps in maintaining a cleaner and more readable commit history.
Loading...
Related Quiz
- A development team is working on a feature that will take several weeks to complete. Which Git workflow model would best support their needs for isolation and regular integration?
- A company is transitioning from SVN to Git. They want to ensure their historical branches and tags are preserved. What migration strategy should they use?
- Using SSH ________ is a recommended method for secure authentication in Git.
- When you want to combine histories of multiple repositories, a git __________ can be a suitable approach.
- To change the commit message of the most recent commit, use the command git commit --_______.