Sometimes mentors add changes to GitHub task when you already forked it and downloaded to your local machine.
To get changes from Mate academy repository you have to add connection between this repository and your local machine and pull changes. Follow the instructions below.
- Open a terminal and type the command to see your remote connections:
git remote -v
you should see one connection to your forked repository:
- Go to origin Mate academy repository and copy a link to it:
- Add another
remote
named 'upstream'. Pass link to Mate academy repository you've recently copied:
git remote add upstream <copied_url>
- Check that new remote was added:
git remote -v
you should see two connections now:
- Switch to
master
branch:
git checkout master
- Pull changes from Mate academy repository:
git pull upstream master
- Switch to your branch:
git checkout develop
Note: if you created another branch (not develop
) use its name instead
- Rebase commits from your branch:
git rebase master
- Push changes to GitHub:
git push origin develop -f
Now you can continue working on the task.