vrish88 vrish88 - 1 year ago 93
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.