Mod aaa-12 修改readme.md的格式错误

RCA:
SOL:
修改人:dongxiancun
检视人:dongxiancun
This commit is contained in:
dongxiancun 2019-06-17 17:48:56 +08:00
parent 71fa3132b3
commit c0eb277447
1 changed files with 26 additions and 2 deletions

View File

@ -117,7 +117,29 @@ sGATE_GIT_VERS 记录了当前源码在 gitlab 服务器上面的版本信息
#### 7. Windows 开发环境搭建 #### 7. Windows 开发环境搭建
+ 解决 git 出错的方法 + 方法一:下载克隆(或屏蔽)部分文件代码(**适用于不在windows下查看、编辑linux内核代码的开发人员**
1. 说明
**windows操作系统git下载克隆或屏蔽部分文件代码的方法**
使用以下代码的重点是不能使用POWERSHELL/CMD只能使用git bash如果在POWERSHELL/CMD中操作在最后一步命令的时候会报以下错误
<code>error: Sparse checkout leaves no entry on working directory</code>
2. 准备工作启用git的sparse checkout功能要求Cit 1.7+版本)
mkdir secogateway
cd secogateway
git init
git remote add -f http://git.komect.net/ISG/secogateway.git
git config core.sparsecheckout true
3. 设置检出的过滤规则示例屏蔽kernel文件夹
echo '/*' >> .git/info/sparse-checkout #这一步不可省略
echo '!/kernel/' >> .git/info/sparse-checkout
4. 命令行 执行检出或使用TortoiseGit等图形化工具执行检出
git checkout master
----------------
+ 方法二:windows下模拟linux文件系统
1. 下载并安装 [cygwin](http://cygwin.com/install.html) 1. 下载并安装 [cygwin](http://cygwin.com/install.html)
2. 运行安装程序 ![安装界面](./docs/img/1.PNG) 2. 运行安装程序 ![安装界面](./docs/img/1.PNG)
@ -131,7 +153,9 @@ git clone [git@git.komect.net:ISG/secogateway.git](http://git.komect.net/ISG/sec
8. git clone 完成后,可以从 E:\my_projects\secogateway 访问文件。警告文件为内核源码,可以忽略 ![](./docs/img/A1.PNG) 8. git clone 完成后,可以从 E:\my_projects\secogateway 访问文件。警告文件为内核源码,可以忽略 ![](./docs/img/A1.PNG)
9. 可以将 kernel/linux-4.14.83/ 添加到本地 .gitignore 文件中,但不要将 .gitignore 文件提交到服务器 9. 可以将 kernel/linux-4.14.83/ 添加到本地 .gitignore 文件中,但不要将 .gitignore 文件提交到服务器
+ 将服务器目录映射到 Windows 驱动器 ---------------
+ 方法三:将服务器目录映射到 Windows 驱动器(**网络IO非常慢建议在服务器上编译**
1. 安装 [sshfs](https://github.com/billziss-gh/sshfs-win) 1. 安装 [sshfs](https://github.com/billziss-gh/sshfs-win)
2. 安装 [WinFsp](http://www.secfs.net/winfsp/) 2. 安装 [WinFsp](http://www.secfs.net/winfsp/)
3. 参照 [WinFsp文档](http://www.secfs.net/winfsp/) 进行配置 3. 参照 [WinFsp文档](http://www.secfs.net/winfsp/) 进行配置