0 votes
in Git by

How can you return a commit that has been pushed and made open?

1 Answer

0 votes
by

git revert” can help in reverting one or multiple commits. The command helps in the creation of a new commit that cancels out changes brought in the previous commits. The following command can help in reverting the two previous commits.

“git revert HEAD~2.HEAD”

Related questions

0 votes
asked Oct 30, 2022 in DevOps by Robindeniel
0 votes
asked Aug 24, 2023 in Git by JackTerrance
...