0 votes
by
How will you fix a Broken Commit?

2 Answers

0 votes
by

To fix a broken commit or to change the last commit, the most convenient method is to use the command “git commit -amend’.

It allows you to combine staged changes with the previous commit as an alternative for creating an entirely new commit. This replaces the most recent commit with the amended commit.

broken commit

0 votes
by

In order to fix any broken commit, use the command “git commit --amend”. When you run this command, you can fix the broken commit message in the editor.

Related questions

0 votes
asked Oct 15, 2019 in Git by rajeshsharma
0 votes
asked Apr 13, 2020 in QuickTest Professional (QTP) by amita rallin
...