Learn how to undo a git pull by resetting your local branch to a previous commit. If you have access to the git pull output, you can identify the previous commit SHA directly. If the output is not available, use git reflog to find the necessary SHA. Use git reset with the --keep option to revert to the desired commit.

2m read timeFrom adamj.eu
Post cover image

Sort: