Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added commands for generate patches, apply patches and commit options

...

Git

SVN

git commit -m "comment"______________
git push
Note: It is better to use the command "git commit -a --signoff", which will open an editor using which you should write the commit comment.
This commit would be used as an email message and a subject and the format goes something like:
* First line is used as the subject
* Second line onwards is used as the body of the message
The --signoff option add the text:
"Signed-off-by: My Name <myemail@example.com>"
This signoff statement becomes part of the comment and will be used to track the changes done and also the copyright owners of the changes

svn commit -m "comment"______________

...

Create a patch (diff of working copy from head)

Git

SVN

git xxxformat-patch master --stdout > my_change.patch______________

svn xxx______________

Apply a patch

Git

SVN

git xxxapply --stat my_change.patch______________

svn xxx______________

...