vrish88 vrish88 - 10 months ago 83
Git Question

Create a git patch from the changes in the current working directory

Say I have uncommitted changes in my working directory. How can I make a patch from those without having to create a commit?

Answer Source

git diff for unstaged changes. git diff --cached for staged changes.