FrontendDeveloper.in

Git Track Detail

What is the difference between reset and revert?

reset moves branch pointers and can rewrite history; revert creates a new commit that undoes earlier changes and is safer on shared branches.