Just a quick TIL note here.
If you have ever encountered a similar scenario:
You have repo A and repo B.
Repo B is derived from repo A.
You are currently on repo B, and want to merge branch (or pick commit) from repo A.
How to achieve that?
Here is what git command remote magically does:
git remote add repoA addressOfRepoA- Assume you are on
masterbranch of repo B, and want to mergemasterbranch from repo A. git pull repoA master- Done.
Actually an repo doesn’t have limitation on how many remote repo it can have, so if you run into similar case like me, hope this post help.
References: