I've been working with git for 6 years now and I've had some major nightmares over the years. Hours or days of code gone in one swift enter key stroke.
I've learnt one git command that's since saved me from those nightmares:
It keeps a local history of all the changes to a repo. So even if you screw up your branch, the commit is still there and can be found and restored using reflog.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.