When you have forked a repo, it can be useful to pull in changes that have been made to the original.
Git makes this pretty straightforward.
Configure Git Remote
To list the current remotes in your project, cd into the repo directory and run:
Configure a git remote that points to the upstream repo (the original that you forked from):
Sync to the Upstream Repo
- Fetch data from the upstream repo - commits to master will be stored in a local
- Checkout the fork’s master branch (if you’re not already on master)
- Merge changes from
Bitbucket allows automatic fork synchronization - this is enabled in the Bitbucket GUI when you first fork the repo. I’ve not used this feature.
comments powered by Disqus