WebRTC 源码旧版本下载

发布于 2022-11-15 | 作者: 阿六_Dexter | 来源: CSDN博客 | 转载于: CSDN博客

最新源码可在此地址下载: src - Git at Google (googlesource.com)

获取旧版本代码的步骤,主要内容如下:

1. 获取代码:

​ git clone https://chromium.googlesource.com/external/webrtc

2. 编辑文件

.git/config(cd .git 然后vim config),在[remote "origin"]部分,增加内容fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*,然后保存文件,退出.git文件夹,进如webrtc的代码文件夹。

[remote "origin"]
	url = https://chromium.googlesource.com/external/webrtc
	fetch = +refs/heads/*:refs/remotes/origin/*
	fetch = +refs/branch-heads/*:refs/remotes/branch-heads/*

3. 查看版本

执行 git fetch,可以运行git branch -r命令查看wenrtc发展过程中的所有版本号

4. 切换版本

比如要获取49版本,执行git checkout -b rel49 branch-heads/49