Skip to content

Blog

Revert commits in git

Examples to revert changes in a repo, primarily using git revert. These examples come from the following sources:

  • https://stackoverflow.com/questions/3293531/how-to-permanently-remove-few-commits-from-remote-branch
  • https://christoph.ruegg.name/blog/git-howto-revert-a-commit-already-pushed-to-a-remote-reposit

Bash timezone checks

If you try to build an over-complicated scheduler using bash, you may run into issues when it comes to Daylight Saving Time. While it is a good idea to use Coordinated Universal Time (UTC), you might want to make sure you do not run into issues. The examples will use the date with the +"%H:%M" format.