今天提了一个电源管理的patch,算是一个好的开端吧。写下整个patch提交的过程,为后来人引路。
一般在新的系统上,我们都需要先配置下自己的 Git 工作环境。最重要的是配置你个人的用户名称和电子邮件地址。这两条配置很重要,每次 Git 提交时都会引用这两条信息,说明是谁提交了更新,所以会随更新内容一起被永久纳入历史记录:
$ git config --global user.name "Zhang xxx"
$ git config --global user.email [email protected]
要检查已有的配置信息,可以使用$ git config --list 或 更加简洁的$ git config -l
b46552@rock:~/linux-pm$ git config -l
[email protected]
user.name=xxx Zhang
remote.review.url=gerrit:infrastructure/legal-review
remote.review.receivepack=git receive-pack
remote.review.push=HEAD:refs/for/master
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
也可以单独查看某一项$ git config user.name
b46552@rock:~/linux-pm$ git config user.name
xxx Zhang
Linux opensource的代码review主要靠maillist,也有一些公司内部的SDK开发还会用到基于web并整合了git的代码review的gerrit,这点下次再讲解
PM(电源管理)有一个单独的git tree,由rafael维护(可以通过vi linux-devel/MAINTAINER; 查找 linux-pm Maintainer列表找到)
首先从服务器上将linux-pm tree clone下来。$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
一般在新的系统上,我们都需要先配置下自己的 Git 工作环境。最重要的是配置你个人的用户名称和电子邮件地址。这两条配置很重要,每次 Git 提交时都会引用这两条信息,说明是谁提交了更新,所以会随更新内容一起被永久纳入历史记录:
$ git config --global user.name "Zhang xxx"
$ git config --global user.email [email protected]
要检查已有的配置信息,可以使用$ git config --list 或 更加简洁的$ git config -l
b46552@rock:~/linux-pm$ git config -l
[email protected]
user.name=xxx Zhang
remote.review.url=gerrit:infrastructure/legal-review
remote.review.receivepack=git receive-pack
remote.review.push=HEAD:refs/for/master
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
也可以单独查看某一项$ git config user.name
b46552@rock:~/linux-pm$ git config user.name
xxx Zhang
Linux opensource的代码review主要靠maillist,也有一些公司内部的SDK开发还会用到基于web并整合了git的代码review的gerrit,这点下次再讲解
PM(电源管理)有一个单独的git tree,由rafael维护(可以通过vi linux-devel/MAINTAINER; 查找 linux-pm Maintainer列表找到)
首先从服务器上将linux-pm tree clone下来。$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git