webrtc
webrtc copied to clipboard
How to update google webrtc source from upstream.
Clone or fork the repo and switch to master
git clone https://github.com/webrtc-sdk/webrtc.git -b master webrtc-src
cd webrtc-src
Add upstream
git remote add upstream https://chromium.googlesource.com/external/webrtc.git
git fetch upstream
Edit the upstream .git/config
to download branch-heads/*
from googl webrtc.
- add
fetch = +refs/branch-heads/*:refs/remotes/upstream/branch-heads/*
to.git/config
[remote "upstream"]
url = https://chromium.googlesource.com/external/webrtc
fetch = +refs/heads/*:refs/remotes/upstream/*
fetch = +refs/branch-heads/*:refs/remotes/upstream/branch-heads/*
- Pull all branches from upstream.
git fetch upstream
git branch -a
- You can see that all branches look like this.
...
remotes/upstream/branch-heads/4006
remotes/upstream/branch-heads/4007
...
You can see the all branches in https://chromiumdash.appspot.com/branches.
for example: Sync the m92 version to our repo.
M92 = refs/branch-heads/4515
git checkout -b branch-m92 remotes/upstream/branch-heads/4515
git push --set-upstream origin branch-m92
Now that you have an m version branch, you can add your own patches and compile them.
Cheers.