Git is good, but for beginner like me, always feeling no way to give the first bite. I am confused about fork, branch, signed-off-by, push, merge and many other commands, maybe it is pretty clear for the clever boys but not for me. Thanks to adrianschmutzler comment at https://github.com/openwrt/openwrt/pull/3022, I start to understand how it works.
- click the “Fork” button on github.com/openwrt/openwrt
- goto your forked openwrt, click on “Clone or download”, get the address and clone to your local.
- make the change on your local source code.
- setup your name and email on your local by command git config –global user.email firstname.lastname@example.org and git config –global user.name “your name”
- submit your change by command “git commit -s“, remember to keep that Signed-off-By line and add the reason of the changes to comment.
- push the commit by command “git push origin“
- finally, go to github, create a merge request.
Signed-Off-By is just a text line in the comment to tell other who submit that patch, I am confused about that a long time, I thought it is added by some magic :p
PS: In old good time I only use git init, git commit and git clone. Now good new day comes.