Pro-tip for working with git

While organizing my old personal notes I stumbled upon a interesting real-life tip:

When using git, do not hesitate to commit and push very often. Pushing even few times a day is a good idea. Otherwise, it may cost you a lot of time.
When you're not concentrated enough on what you're doing it is really easy to confuse terminal commands, especially cp -r project_name new_location and rm -rf project_name new_location look very similar.

It reminded me of the infamous Bulblebee driver epic fail...