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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:45:39+00:00 2026-05-31T02:45:39+00:00

The first repository is on server_A, there is server B and C got it’s

  • 0

The first repository is on server_A, there is server B and C got it’s clone, and commit/push a few to original server_A. Then, server_A down. From server_C, How to push to server_B instead?

Git is designed for this kind of condition. But I found many terms and options in “git help remote“, they are branches, masters, heads, tags, urls, merge mirrors and mores. A line of command for this condition would be helpful, thank you.

  • 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-31T02:45:41+00:00Added an answer on May 31, 2026 at 2:45 am

    I’d suggest to add a second remote url to the repository of server_C. Go into the folder that contains your repository on server_C. Then execute

    git remote add server_b <url-to-repository-b>
    

    and then you can push changes:

    git push server_b [reference]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After checking out code for the first time from a repository into Eclipse using
First, I know about this: How would you organize a Subversion repository for in
First off, there's a bit of background to this issue available on my blog:
There are two accounts on github I'd like to use. The first, my private
I just got a shiny, brand-new Debian server handed to me by our Systems
I'm currently transfering some source code from a Subversion (SVN) repository to my client's
I've got a repository i've been working with a little, it has around 805
We're running VisualSVN server, and last night it seemed to have gotten corrupted. From
I have just built up my first SVN server, along with the mod_dav_svn module
I'm using gitosis to host a git repository on my home server. I've set

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.