FrontendDeveloper.in

Git question 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.

Back to all Git questions
Get LinkedIn Premium at Rs 399