Interview Prep/Git & GitHub/Rapid-fire commands

Create a patch file from your changes and apply it elsewhere, testing first.

BeginnerProductionRapid-fire commands
Answer
git diff > fix.patch
git apply --check fix.patch && git apply fix.patch
All Git & GitHub questions Roadmap: Git & GitHub

More on Rapid-fire commands