Skip to content

Commit #407

Answered by rohit32999
rooo02 asked this question in Q&A
Oct 18, 2024 · 1 comment
Discussion options

You must be logged in to vote

You can revert a commit by using the command git revert <commit_hash>. This creates a new commit that undoes the changes made by the specified commit. If you want to remove the commit from history, you can use git reset <commit_hash>, but be cautious as this can alter the commit history.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rooo02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants