Make delicious recipes!

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.



Like us on Facebook to remain in touch
with the latest in technology and tutorials!


Got a thought to share or found a
bug in the code?
We'd love to hear from you:

Name:
Email: (Your email is not shared with anybody)
Comment:

Facebook comments:

Site Owner: Sachin Goyal