git remote add
- remote
$ git remote
origin
$ git remote add upstream /path/to/git/repo2
$ git remote
origin
upstream
$ git pull
$ git fetch upstream
$ git merge upstream/main
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
$ git remote
origin
$ git remote add upstream /path/to/git/repo2
$ git remote
origin
upstream
$ git pull
$ git fetch upstream
$ git merge upstream/main