Undoing operations in Git - PrismoSkills
Undoing operations in Git
git commit --amend (This allows you to modify the last committed items alongwith current staging area)
git checkout -- <file> (Discards all changes in the local area)
Note: If a file has been deleted from everywhere, it may not be possible to recover. So be careful.
Read full article from Undoing operations in Git - PrismoSkills
No comments:
Post a Comment