Forks

Add a remote

git remote add upstream https://github.com/ORIGINAL-OWNER/ORIGINAL-REPO.git

Syncing

git fetch upstream
git checkout main
git merge upstream/main

Creating branch from tag

git tag
git checkout tags/TAG-NAME
git checkout -b new-branch-name

Add missing tags

git fetch upstream --tags
git push origin --tags

Adding a repository to an organization

Go to ‘Danger Zone’ on GitHub and choose transfer ownership.

Worktree

Create

git worktree add <path> <branch>

Remove

git worktree remove <path>
git branch -d <branch>