GitHub
Cherry Picking Github Commits
If you find a commit online that would patch your code, it can save time and avoid mistakes if you use git to pull in just the code specific to that commit. This can be done with a cherry pick
E.g. git fetch <remote-git-url> <branch> && git cherry-pick FETCH_HEAD
Reverting Github Commits
When you inevitably push code to the repository that you want to revert, the simplest and safest method is to revert the commit in question. The following tutorial provides a helpful guide on doing that