- Once changes are done, add them to stash buy running below 👇 command:
git stash
- Once stash is done, create a patch file for the diff
git stash show -p stash@{0} > {file_name}
Now you can apply these changes or reverse (once applied)
// apply changes
git apply {file_name}
// reverse applied changes
git apply {file_name} --reverse