Let's see how to pull updates made by your instructors to these class repos that you previously forked/cloned:
- https://git.generalassemb.ly/SEB-0414/Course
- https://git.generalassemb.ly/SEB-0414/Lessons
- https://git.generalassemb.ly/SEB-0414/Assignments
Be sure to follow the steps below for each of the three repos above
- In Terminal, move into the repo that you'd like to pull from, for example,
cd ~/code/ga/Lessons - List the remote(s):
git remote -v - The output should list both an
origin(pointing to your fork) and anupstream(pointing to the target GA repo above that you're pulling from). Note that there are two entries per remote. - IF you are missing
upstream:git remote add upstream <copy/paste the repo's url (green Code button)> - IF the
upstreamremote's URL is incorrect:git remote set-url upstream <copy/paste the repo's url (green Code button)> - Verify any updates you made:
git remote -v
Run the same two commands as always used to commit your work:
git add -Agit commit -m "Your Commit Message in Present Tense"
To pull down updates to the remote repo made by your instructors, run:
git pull upstream main
If you receive an error, try:
git pull --rebase upstream main
Pulling the changes to your local repo does not automatically update your fork. To update the fork, run the usual command that you've been using:
git push(assuming that you have previous rangit push -u origin main
🙌