mkdir kernel cd kernel git init git remote add {nickname} {git://kernel.url} git fetch {nickname} {commit id} --depth=1 git reset --hard FETCH_HEAD