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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:53:46+00:00 2026-05-22T16:53:46+00:00

I have a repo that is a bare clone of a github repo: git

  • 0

I have a repo that is a bare clone of a github repo:

 git clone --bare git@github.com:PabloSerbo/maiden.git

A number of developers clone that repo and push back to it.

Another developer has committed directly to the github repo.

I would like to know how to get the changes on github back into the bare repo for the other developers to pull from.

I have tried:

 git fetch origin

Which seems to fetch to:

 remotes/origin/master

But I can’t get local head to have the changes.

The closest question I can find is this:

How do I update my bare repo?

This suggests mirroring, but I would like to know if there is a way to achieve this without the need to mirror.

  • 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-22T16:53:47+00:00Added an answer on May 22, 2026 at 4:53 pm

    clone the bare repo yourself. This will have origin pointing to that. Now add the github repo as ‘github’ remote. You can now fetch the branches and tags from github and in turn push them to origin.

    git fetch github
    git push origin github/yourbranchname:yourbranchname
    

    Hope this helps.

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

Sidebar

Related Questions

I have a server that is hosting my 'bare' GIT repo for a few
I have a git repo with a bunch of source code, and when that
I have a project that's using git. When I received the repo, it had
I have a Git repo that I have deleted four files from using rm
I have a bare repo that receives only pushes. When such pushes are made,
we have a git svn repo that fetches from svn and shows all the
I have a repo on GitHub with a single branch master that I've been
Hi I have SVN repo that I frequently use for change management. However after
So i have this local SVN repo that i am using for my dev
I have a branch in a badly structured svn repo that needs to be

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.