patch - How do patches work in Git? -
i'm new git, familiar svn. test made repository in local directory git init
. cloned empty repository (over ssh using 127.0.0.1, thing wanted test) local directory. added files in repository 2, did git add *
, git commit -a -m "first source code"
.
i want create patch using git format-patch
, apply on repository 1. how do this? know there's manual, these things terribly complicated , make me wanna things monitor.
create patch via:
$ git format-patch master --stdout > patch.diff
then patch.diff contain diff, can send else apply using:
$ git < patch.diff
sometimes, when manuals little dense, makes sense tutorial:
Comments
Post a Comment