git Flashcards

1
Q

To remove a commit done locally

A

git reset –soft HEAD^

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

To remove a commit you have already pushed

A

git revert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly