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 8119015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:40:30+00:00 2026-06-06T04:40:30+00:00

I’m somewhat new to Git. So I’ve got the origin/master and origin/upbranch on my

  • 0

I’m somewhat new to Git. So I’ve got the origin/master and origin/upbranch on my remote server. I’ve also got a master branch on my local machine. How do I go about setting it up so that I can push to origin/upbranch from my local machine? Also, how would I set up pulling into origin/master from origin/upbranch? I can access the remote server via static address, but have no address to access local from remote.

Also, any references you would recommend for someone learning Git?

Edit: renamed origin/upstream to origin/upbranch, since I may have misunderstood its meaning.

master (local) -> origin/upbranch (remote) -> origin/master (remote)

  • 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-06T04:40:33+00:00Added an answer on June 6, 2026 at 4:40 am

    Is upstream a branch in this scenario? It sure looks like it. I believe that branch name is really going to confuse people.

    But to answer some of the questions:

    Assuming you have master -> origin/master and upstream -> origin/upstream. It looks like you already have your local branches tracking the remote ones.

    How do I go about setting it up so that I can push to origin/upstream
    from my local machine?

    Switch to the upstream branch

     > git checkout upstream 
     ... awesome changes 
     > git commit -a -m "Did something awesome." 
     > git push origin upstream
    

    You use checkout to switch to your locally tracked upstream branch. Make some changes. Commit them, them push them back to origin.

    Also, how would I set up pulling into origin/master from
    origin/upstream?

    You don’t directly do this. You have to merge locally then push.

    > git checkout upstream
    > git pull origin upstream
    > git checkout master
    > git merge --no-ff upstream
    > git commit -a -m "Merged upstream into master."
    > git push origin master
    

    Change the local branch to upstream. Pull any changes from the remote branch. If there were merge problems you’ll have to fix + commit first before switch back to master. Switch to the master branch and merge in the changes from upstream into master. I turn off fast-forwarding so that it creates a new merge commit instead of just moving the pointer of master.

    Commit the merge and then push it back to the remote server.

    Confusion

    If upstream is supposed to be another remote location like origin then I don’t know exactly what you are trying to do since you listed upstream as origin/upstream.

    From what I have seen the name upstream would be used to name another remote location. In that case, origin would be similar to upstream. Not master to upstream. But I kept with the assumption you created 2 branches, one called master (created by default) and one called upstream and you’d like to work in them and merge upstream into master.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
i got an object with contents of html markup in it, for example: string
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

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.