The git _______ command is used to change a commit message that hasn't been pushed yet.
- commit --amend
- commit --modify
- commit --edit
- commit --change
The correct option is commit --amend. This command allows you to modify the last commit's message. It's useful when you need to make small changes or corrections to the commit message before pushing it to the remote repository.
Loading...
Related Quiz
- During a database upgrade, a team needs to apply incremental schema changes stored in Git. What strategy should they follow to ensure a smooth transition?
- When would you use git checkout instead of git reset to undo changes?
- _________ in Git can be automated in an IDE to ensure code quality before commits.
- What is the effect of git reset --hard HEAD^?
- How can you identify the specific commits that introduced conflicting changes during a merge in Git?