Git – patching your code with git-diff command

If like me sometime you don’t want to commit some modification to your code and  you’re using Git to version it

Here’s below simple steps to follow to make your life easier 😉

Create the patch

Run this command to generate the patch

 Apply the patch

Then on another machine, apply the patch like this

It’s simple as that 🙂

Leave a Reply

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

Back to Top