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:

http://luhman.org/blog/2009/09/22/git-patch-tutorial


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -