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

  • Home
  • SEARCH
  • 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 8595399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:25:26+00:00 2026-06-12T00:25:26+00:00

I cloned a forked github repo , created a branch out of it .

  • 0

I cloned a forked github repo , created a branch out of it . How do I update ( with git pull ) my branch with upstream/master ?

In detail , here’s what I did :

1) Forked a repo on GitHub

2) Cloned my github repo to local box

Then I made some local changes , committed and pushed to my GitHub repo . These changes were specific to me , and would not be useful to others , hence no Pull Request . I’ll call these commits “private commits” . So this is what happened :
4) Did some “private commits”

Then I started working on one feature , which would be really useful to others . So I thought I’ll have to branch out of my local master , before “private commits” , call it “pull-request-branch” . So , here’s what I did :

5) git branch <before private commits>

6) git checkout -b pull-request-branch

7) git push -u origin pull-request-branch

Then I figured I’ll have to update this branch with the Upstream changes before I start working on the new feature . So here’s what I did next

8) git remote add upstream <original-repo>

9) git pull upstream pull-request-branch ( This does not work )

How do I update pull-request-branch with upstream/master ?

  • 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-06-12T00:25:27+00:00Added an answer on June 12, 2026 at 12:25 am

    You specify the branch you want to pull from, not to:

    $ git checkout pull-request-branch
    $ git pull upstream master
    

    will update pull-request-branch from upstream/master.

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

Sidebar

Related Questions

I forked rails and then this is what I did. > git clone git@github.com:nadal/rails.git
I am trying to clone a git repo that I forked in my GitHub
I forked a project in github and then did a git clone on this
I cloned a read-only Git repo from GitHub onto my server. The next day,
I have a repository on GitHub located here . I created a working branch
I cloned the git repo and placed in the document root of my nginx
I have cloned ~60 git repositories and I would like to update the most
I've cloned a (remote) repo into Eclipse(EGit), which created a working directory for the
I've forked from a repo on GitHub. I want to get the code from
I forked a repository on GitHub. I then cloned my fork into a folder

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.