Is nothing truly ever deleted in git?
Posted
by
allenskd
on Stack Overflow
See other posts from Stack Overflow
or by allenskd
Published on 2010-12-29T23:51:03Z
Indexed on
2010/12/29
23:54 UTC
Read the original article
Hit count: 254
git
I'm currently learning git, usually I'm a bit skeptic of VCS since I have a hard time getting used to them.
I deleted a branch called "experimental" with some tmp files, I saw the files removed in my working directory so I scratched my head and wondered if this is normal, can I bring it back in case I need it again, etc.
I found the SHA making the commit of the tmp files and recreated the branch with the provided sha and saw it again with all the files and their current content.
Everything I do in the working directory can be reverted once I commit it?
Might seem like a silly question to many people, but it kinda intrigues me so I want to know the limits
© Stack Overflow or respective owner