You can temporarily save your changes without committing them to a branch by stashing the changes.
Reverting a commit
You can revert a specific commit to remove its changes from your branch.
Amending a commit
You can use GitHub Desktop to amend your last commit.
Cherry-picking a commit
You can pick a specific commit on one branch and copy the commit to another branch.