Tips and tricks

Revert to a previous commit without rewriting history

The tip of the git would not go back in time, it will go on top of the current branch tip head.

git revert --no-commit HEAD~2..HEAD && git commit

would return to 2 commits behind

Leave a comment

Your email address will not be published

{"type":"main_options","images_arr":"'#ffffff'","bg_slideshow_time":"0","site_url":"https:\/\/digitalzoomstudio.net","theme_url":"https:\/\/digitalzoomstudio.net\/wp-content\/themes\/qucreative\/","is_customize_preview":"off","gallery_w_thumbs_autoplay_videos":"off","base_url":"https:\/\/digitalzoomstudio.net"}