Sunday, December 13, 2009

GIT Guide --- update

Before your commits make sure you have these variables defined. :)
==================================================
nemesis@nemesis-laptop:~/qemu/qemu$ git config --global user.name "nemesisofstate"
nemesis@nemesis-laptop:~/qemu/qemu$ git config --global user.email "nemesisofstate@gmail.com"


for checkin
========

edit [file]
git add [file]
git commit -m "your-message-here" -s

-s
--signoff

Add Signed-off-by line by the committer at the end of the commit log message.


======================
see your patch

git format-patch origin/master

your messages
===============
git show

gitk ===> graphic tool for git

Send out your patch
================
I use gmail to send my patches ...so u need msmtp for it [http://msmtp.sourceforge.net]. Install the file and configure your ~/.msmtprc file

git-config --global sendemail.smtpserver /usr/local/bin/msmtp

sudo apt-get install git-email

git email-send

e.g
nemesis@nemesis-laptop:~/qemu/qemu$ git send-email 0001-correcting-ARM-CPSR-register-bit-position-comment.patch


No comments: