Jump to content

Recommended Posts

Posted

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

Posted
Please, search around. Plenty of such stuff here.

Okey, I find this command git diff > patchfile.diff

for non-commit create patch...its right?

Thanks

Posted
Okey, I find this command git diff > patchfile.diff

for non-commit create patch...its right?

Thanks

Yes, such diff can be applied with git-apply or using GNU patch utility for example.

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

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.

×
×
  • 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