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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:16:34+00:00 2026-06-18T09:16:34+00:00

Ok, so I have a cloned github repo on my local machine, and another

  • 0

Ok, so I have a cloned github repo on my local machine, and another forked github repo in my github account.
I would like to push a file from my cloned local repo to my forked repo. I need to push it in the same location (e.g. the file in my local repo is in /folder1/folder2 and I have to push it in my forked repo in /folder1/folder2). Does anyone now a way to do this?

Thanks!

  • 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-18T09:16:35+00:00Added an answer on June 18, 2026 at 9:16 am

    You can clone your fork, and as Justin ᚅᚔᚈᚄᚒᚔ comments, add, commit and push.

    If you try to push from your current local clone, its main remote address (the ‘origin’) refers to the first GitHub repo, and not your fork.

    But you could do it from the same repo, by adding to your current local clone the address of your fork:

    git remote add fork https://github.com/user/myFork
    

    , and push there:

    git push fork master.
    

    enter image description here

    See also “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 just cloned this repo from github and would like to have a play
I would like to clone a git project (from github, say), and have the
I have git cloned a repo from Github, now I want to experiment with
I have cloned a repo with 2 branches from github: git clone https://github.com/user/repo cd
I have cloned ~60 git repositories and I would like to update the most
I have just setup a new local site (localhost/pfb.net/) which has been cloned from
I have a local git repository a central repo at github. I'm working on
I have cloned a github repo, and since then the original repo has been
I have ~30 git repositories cloned from github that I use for web/ruby/javascript development.
I have a forked github repository (call it repo-O and call my fork repo-F)

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.