git
1.config the global information ,name and email
2.download the git-tree from remote
3.modify the files
----4.git add (增加文件到git-tree中)
指定文件名或增加.gitignore
6.git commit -m "description of the modify(patch)"
7.git format-patch -n -s -1 -o patch-dir //generate the patch
8.git am < patch-dir //merge the patch from patch-dir
9.恢复到上一次(撤销本次,代码不修改)
git reset --soft 哈西值
git reset
gitemail
git send-email --no-signed-off-by-cc --from lizhijie86su@gmail.com --to skyeye-patch@lists.sourceforge.net --compose --thread --no-chain-reply-to --smtp-server smtp.gmail.com --subject "bus_read bug" patch_dir
修改branch:
git branch -a 查看远程所有的branch
git checkout --track -b ppc-dyncom remotes/origin/dyncom_arm_ppc
阅读(469) | 评论(0) | 转发(0) |