Category: Recovery

How to abort a git commit amend 0

How to abort a git commit amend

Some­times you issue a git com­mit –amend only to real­ize that you didnt really mean to amend the pre­vi­ous com­mit. You’d rather save your changes as a new com­mit. This can hap­pen under many…

How to undo local changes in git 0

How to undo local changes in git

Lets say you have a cou­ple of changes in your work­ing direc­tory that you want to dis­card. There are a few ways in which you can accom­plish this. 1) Stash all your changes, then drop…