Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 1.25 KB

HowToSyncUpdatedRepo.md

File metadata and controls

70 lines (43 loc) · 1.25 KB

How to sync your repo with updated code

Prerequisite: A fork of the DevCollective repo.

Please follow this guide if you haven't yet.

1. Navigate into your fork of the DevCollective Repo

Make sure you have a git remote configured for the upstream (original/source) repository. You can check your current remotes with this command:

git remote

alt text

If you don't have the upstream output, run this command:

git remote add upstream https://github.com/Mintbean/DevCollective.io.git

Then check your remotes again.

git remote -v

Should look something like this:

alt text

2. Fetch updated code from the original repo
git fetch upstream

alt text

3. Merge it into your main branch
git merge upstream/main

The output should look something like this:

alt text

4. Push updated code to your fork of the repo on github

Make sure you are on the main branch first.

git checkout main

alt text

Then run:

git push

alt text

You have now updated your forked repo!