Saturday, 3 October 2020

Working with Forks

Sinkronisasi Upstream Git Tag ke Local Fork

cd /path/to/fork/clone

git remote add upstream url/original/repo

git fetch --tags upstream

#Push the tag from my local to my master branch

git push -f --tags origin master

Referensi

  1. Configuring a remote for a fork, https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/configuring-a-remote-for-a-fork
  2. Syncing a fork,  https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/syncing-a-fork
  3. Upstream git tag is not showing in forked repository, https://stackoverflow.com/questions/51006930/upstream-git-tag-is-not-showing-in-forked-repository