Jump to content

create patch


Guest filo

Recommended Posts

How I can make my own patch with somes changes in source?

I try use this command:

git format-patch -1 --stdout > my_changes.patch

but its create file with 0 bytes...

I read another topic, where I find this commands:

git add .

git commit -a -m "my commit"

but this command will commit change to mangos branch, no? I need create my own private patch.

Thanks for help

Link to comment
Share on other sites

  • 5 months later...
  • 5 months later...

git diff #A diff that outputs all the changes made that are uncommited (Except untracked files)
git diff HEAD^ #Compares the last commit with the one before that and outputs a diff
git diff COMMIT COMMIT #Compares 2 commits and outputs a diff

Just add "> FILE.EXT" to them for saving to a file.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use