Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7661477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:36:13+00:00 2026-05-31T13:36:13+00:00

We asked students in our class to use github to keep all their course

  • 0

We asked students in our class to use github to keep all their course project code. Each student created his repo. (I guess I should have created the repo and created teams and it was my mistake). I then forked each of those repos under my organization.

I thought that I could simple pull the changes as and when students update their original repo. I think my understanding of how the pull works is wrong.

In the following image I can see that student has updated his repo with some new documents but is there any way I can simply update the repo I have forked ?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:36:14+00:00Added an answer on May 31, 2026 at 1:36 pm

    Assuming you have a central repository, you need to update your forked repo, simply add the source repository as a remote and then use a standard git pull. You can then push those changes to your forked repo.

    There are two options to easily update your fork:

    Option 1

    Merge the upstream repo into your own…

    # Add the remote, call it "upstream":
    
    git remote add upstream git://github.com/whoever/whatever.git
    
    # Make sure that you're on your master branch:
    
    git checkout master
    
    # Merge the upstream master branch to your master branch
    
    git pull upstream master
    
    # Now push your changes to your forked repository on github
    
    git push origin master
    

    Option 2:

    Alternatively, you could use rebase to update your fork…

    # Add the remote, call it "upstream":
    
    git remote add upstream git://github.com/whoever/whatever.git
    
    # Fetch all the branches of that remote into remote-tracking branches,
    # such as upstream/master:
    
    git fetch upstream
    
    # Make sure that you're on your master branch:
    
    git checkout master
    
    # Rewrite your master branch so that any commits of yours that
    # aren't already in upstream/master are replayed on top of that
    # other branch:
    
    git rebase upstream/master
    
    # Now push your changes to your forked repo on github...
    
    git push origin master
    

    Github has detailed documentation on working with forked repositories: Github: Fork a Repo

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good day! Our teacher asked us to make a student list using a linked
We are software engineering students that were asked to do a project to help
I'm a student doing an extra-grade project, and my prof has asked me to
I have a list of grades that students received. Each student appears multiple times
One of my students asked me this kind of homework with C++ arrays. It
I've checked the connections between all of my files, as well as Class and
To clarify, multiple students objects and all of them are getting the same value.
I'm a PhD student looking at software watermarking techniques and I always get asked
I'm a student in Java class and learned something about Java today that made
After tutoring a few students at a local college, I was asked when is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.