Duckdev84
Duckdev84

001

How to GIT synchronize between origin and upstream branch

Nov 26, 2022

This issue is because we want to update our local repository by merging the original sources. In this case, we use the “react-native-webrtc” package that forks from the repository.

postimage

Git flow


In the first step, we create the new repository; in the example, I created the repo name with the prefix “custom” and then added the remote upstream, which refers to something that points to where it originated from.


  git remote add upstream https://github.com/react-native-webrtc/react-native-webrtc.git
  git fetch upstream
  git checkout master
  git merge upstream/master
  git push origin

Now that our branch has already updated from the upstream, let’s try to work on the basic workflow process. I start with the new branch and change the project name in package.json to a “custom-react-native-webrtc”. Following the image ref and cmd.

สำหรับเว็บที่ใช้ background สี #1f2937 (เทาเข้มอมฟ้า) และ font สี oklch(70.7% 0.022 261.325) (เทาอมน้ำเงินอ่อน อ่านง่ายในที่มืด) คุณควรเลือกฟอนต์ที่มีลักษณะ คม ชัด มีระยะห่างตัวอักษรดี และออกแบบมาสำหรับการแสดงผลบนหน้าจอโดยเฉพาะ เพื่อให้ อ่านง่ายสบายตาใน dark mode