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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:15:31+00:00 2026-06-13T09:15:31+00:00

I forked a repo and set everything up on my local machine. However, when

  • 0

I forked a repo and set everything up on my local machine. However, when I do ‘git remote -v’ it shows the original repo as my fetch and push source. I want it to by from my forked repo. How do I change it over to that without starting all over? And then, how do I add an upstream to the original repo?

  • 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-13T09:15:32+00:00Added an answer on June 13, 2026 at 9:15 am

    From the git remote man page:

     git remote set-url origin https://github.com/user/forkname
     git remote add upstream https://github.com/maintainer/reponame
    

    See also the examples of GitHub: Changing a remote’s URL.

    set-url
    

    Changes URL remote points to.

    You will then be able to fetch from upstream, and push to origin:
    See “What is the difference between origin and upstream in Github“.

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

Sidebar

Related Questions

I've forked from a repo on GitHub. I want to get the code from
I've forked a 3rd party git repo that uses maven, and I'm also using
I am trying to clone a git repo that I forked in my GitHub
I have a repo that's forked from a remote repository. I made some changes,
Many open-source projects (e.g. django ) have GIT mirrors which are, in turn, forked
I want to update a forked repo from GitHub web interface. I tried a
I have forked a repo on Github, another guy forked it too I want
So I forked a project in github, and cannot push my local changes to
So I first forked a repo and then made a commit to that forked
I have forked a private repository (an iPhone project) as follows: cd nameofdirectory git

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.