71. Always push and keep remote backup

“In case of fire: git commit, git push”. Local commits are not enough to be safe. Disk failure, wrong usage of git reset, accidental folder removal and puff you’ve lost 5 hours of your work. Always backup to some external source control server: provided by your work, free or paid services like github, gitlab or bitbucket, or your own remote server. Pushing takes just a second but can be a real lifesaver.

If you’re unsure about whether to push to the main branch, shared with other colleagues, create a new branch and… git commit, git push!

Leave a comment

Your email address will not be published. Required fields are marked *