下载android内核源码时,需要用到git,由于git clone不支持断点续传,下载变得很郁闷。解决办法还是有的(前提需要F 翻 Q 墙):
下面以下载android内核goldfish 3.10源码为例,进行讲解:
1. mkdir android-kernel # 新建一个android-kernel目录
2. cd android-kernel # 打开该目录
3. git init # 先用git init 新建一个新仓库
4. git fetch https://android.googlesource.com/kernel/goldfish.git android-goldfish-3.10
注意:#这里需要说明一下https://android.googlesource.com/kernel/goldfish.git这个是goldfish源码地址,而android-goldfish-3.10是goldfish源码版本(具体版本可以打开源码地址查看,前提要先F 翻 Q 墙),注意不要用master,里面为空的,不知为何。
如果中途断掉了,可以重复下面的命令继续:
git fetch https://android.googlesource.com/kernel/goldfish.git android-goldfish-3.10
直到fetch完毕后,出现以下字样
From https://android.googlesource.com/kernel/goldfish.git
*branch HEAD -> FETCH_HEAD
意思是把最新的数据fetch到了本地的FETCH_HEAD分支上去了
然后用git checkout FETCH_HEAD
或者也等同于git fetch https://android.googlesource.com/kernel/goldfish.git HEAD
如果有错误的地方,欢迎指正和提问!
相关推荐
一个支持断点续传的小下载器:py-wget 依赖于requests: pip install requests 安装方法: cd ~ git clone https://github.com/phith0n/py-wget.git cd py-wget chmod u+x py-wget.py alias py-wget="`pwd`/py-...
可实现多线程,断点续传等特性 截图 安装: git clone https://github.com/kikyous/xfdown.git cd xfdown python xfdown.py 如果系统没有urwid模块,到 下载解压 sudo python setup.py install安装 或直接用系统包管理...
音乐后台管理系统 前端 angular6 ng-zorro 后台 java spring-boot maven MyBatis mysql caffeine 实现一个web音乐网管系统 目前实现的功能 登录 ...歌手管理 ...前端播放歌曲,后台返回的流断点续传处理
将此存储git clone git@github.com:Symplicity/janus-bootstrap-storybook.git到本地计算机: git clone git@github.com:Symplicity/janus-bootstrap-storybook.git npm install npm run storybook 贡献 首先,...
无需编译即可在VS代码中调试TypeScript(使用ts-node ) 此存储库包含带有Visual Studio Code launch.json的...这些任务应允许您在代码中命中断点,而无需先进行编译。 更多详细信息 此处的博客文章中的更多详细信息:
使用调试器,您还可以设置断点(可以停止执行代码的位置),并在代码执行时检查变量。 使用此工具调试代码使用此工具,您不必启动浏览器开发人员工具。 只需在index.js中键入代码并运行index.html即可查看输出 ...
jQuery rwdKit jQuery插件可以帮助开发人员在响应式网页中查看当前断点信息:目录快速开始下载版本: 下载或克隆仓库: git clone https://github.com/avantage-digital/rwdKit.git导入库插件: < script src =" ...
在本地环境中运行代码 科技 节点 打字稿 摩卡 柴 设置 克隆、安装和测试 $ git clone https://github.com/mattspaulding/leetcode-ts $ cd leetcode-ts $ npm install $ npm test 调试 在 Visual Studio Code 中,在...
g gulp入门git clone git@github.com:smartlogic/learn-react.git cd learn-react npm install gulp build或只要保存文件就重新gulp build gulp open public/index.html到处走走该代码使用编译,从browser.js入口点...
Python模式,适用于Vim的Python IDE... 如果您是新用户,请使用递归标志克隆存储库: git clone --recurse-submodules Python模式是一个Vim插件,可以将Vim神奇地转换为Python IDE。 为什么选择Python模式? 提高工作效
分叉并克隆项目git clone 通过yarn install安装依赖项 通过yarn test 调试 Plumier已经提供了vscode task和launch设置。 要开始调试测试方案: 找到测试文件并使用.only缩小测试.only 将断点放在.ts文件上所需的...
$ git clone git@github.com:DiveIntoHacking/docker-compose-rails-6.git$ cd docker-compose-rails-6$ docker-compose run --rm web bundle install$ docker-compose run --rm web yarn install$ docker-compose ...
git clone https://github.com/techdev5521/sfp-frontend-assesment.git 2.安装依赖项: npm install 3.运行开发服务器: npm run start 不行吗请参阅 。 笔记 用于收藏图标。 用于Photoshop文件交互。 网格...
dnSpy-dnSpy是调试器和.NET程序集编辑器。 即使没有可用的源代码,您也可以使用它... 主要特点: 调试.NET和Unity程序集编辑.NET和Unity程序集浅色和深色主题参见下文了解更多功能二进制文件建筑git clone --recursive ...
git clone git@github.com:angular-ui/AngularJS-brackets.git ~/Library/Application\ Support/Brackets/extensions/user/AngularJS-brackets (目的地可能因您的操作系统而异) 在括号中: Debug > Show ...
git clone https://github.com/artdecocode/debugger-report.gitcode debugger-report 打开test/spec/index.js并设置断点和第15行。 按F5 ,等待调试器启动。 它将在第15行的src/index.js文件中暂停,而不是在test/...
另一个 ReactJS 组件游乐场 <3 特征: 使用浏览器同步重新加载实时浏览器。 使用 Sass 和 Minify-CSS 进行 CSS ... cd ~/Documents/DevWorkspace/ && git clone git@github.com:gerardmrk/react-test-field.git
目前可以补充Bootstrap 3.2.x构建和查看演示 # install SASS in order to run its compiler$ gem install sass# get the repo$ git clone https://github.com/herereadthis/bellmaker.git$ cd bellmaker/$ npm ...
$ git clone git@github.com:zhen639/pos-tdd.git 在 src/main.js 中编写你的函数。 然后运行 SpecRunner.html 来检查您的代码。 如果通过,您应该重构您的代码并为我编写第二个测试。 祝你好运 您已经为您...
git clone https://github.com/Yatoom/foronoi.gitcd foronoipython setup.py install 注意:您需要在大多数Linux发行版上使用sudo python3 setup.py install 。用法示例使用多边形作为边界框的示例。 from foronoi...