I\'m new to Git, but familiar with SVN. As a test I made a repository in a local directory with git init
. Then I cloned the empty repository (over SSH using 127
You have to go to "repository 2", the one you want to create the patch from, and run git-format-patch to create the patch : git format-patch master --stdout > name_of_patch_file
Then you go in "repository 1", the one you want to apply the patch to : git apply name_of_patch_file
Sometimes it is useful to just check if the patch will cause problems : git apply --check name_of_patch_file