I’m contributing to the development of an open source project which use a git as a repository for the source code.
After do some modification on the source code I want to generate a patch containig my signature (email address and My name) and send it to the open source project maintainer.
How can I do it?
1) Download source code from the git repository:
2) Do some modification on the source code. a new files/folders could be added in the project
3) set your email address and your name for the git commit signature:
After doing this, you may fix the identity used for this commit with:
4) Before commit the changes. we have to add the new files/folders to the local git repository:
under the project folder of the source code
4) And then commit locally the modification with:
under the project folder of the source code
this will open an interactif window
you can check that commit has detected the edited files and the new files under:
under the window of
commit -a, you have to enter comment for your modificationsand then save your commit with Ctrl + O ( WriteOut) and then
Enterand your commit is become saved nowand then quit the
commit -awindow with Ctrl + X (Exit)5) now you can generate your patch with:
under the project folder of the source code
this will generate a patch file with a name like
0001-...-...-.. .patchIf you want to generate patch with
signed-off-byjust add-s: