0

Accidentally I committed my change on master instead of new branch i want revert back this commit.


Is it possible to remove this commit?

Nitesh singh
  • 915
  • 11
  • 21

1 Answers1

2

If you already pushed your commit use git revert, otherwise you can use git reset.

If you want to delve deeper, this thread is for you: How to undo last commit(s) in Git?

Community
  • 1
  • 1
NaN
  • 7,441
  • 6
  • 32
  • 51