Mod aaa-12 修改Windows开发环境搭建,添加了方法一:适用于不在windows下查看、编辑linux内核代码的开发人员
RCA: SOL: 修改人:dongxiancun 检视人:dongxiancun
This commit is contained in:
parent
509fef0b39
commit
45f31ee305
12
Readme.md
12
Readme.md
|
@ -124,24 +124,24 @@ sGATE_GIT_VERS 记录了当前源码在 gitlab 服务器上面的版本信息
|
|||
<code>error: Sparse checkout leaves no entry on working directory</code>
|
||||
2. 准备工作:启用git的sparse checkout功能(要求Cit 1.7+版本)
|
||||
|
||||
```shell
|
||||
<pre>
|
||||
mkdir secogateway
|
||||
cd secogateway
|
||||
git init
|
||||
git remote add -f http://git.komect.net/ISG/secogateway.git
|
||||
git config core.sparsecheckout true
|
||||
```
|
||||
</pre>
|
||||
3. 设置检出的过滤规则:示例屏蔽kernel文件夹
|
||||
|
||||
```shell
|
||||
<pre>
|
||||
echo '/*' >> .git/info/sparse-checkout #这一步不可省略
|
||||
echo '!/kernel/' >> .git/info/sparse-checkout
|
||||
```
|
||||
</pre>
|
||||
4. 命令行 执行检出:(或使用TortoiseGit等图形化工具,执行检出)
|
||||
|
||||
```shell
|
||||
<pre>
|
||||
git checkout master
|
||||
```
|
||||
</pre>
|
||||
|
||||
+ 解决 git 出错的方法二
|
||||
1. 下载并安装 [cygwin](http://cygwin.com/install.html)
|
||||
|
|
Loading…
Reference in New Issue