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

  • Home
  • SEARCH
  • 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 796793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:41:41+00:00 2026-05-14T22:41:41+00:00

Ok, I have three different computers that I work from and right now their

  • 0

Ok, I have three different computers that I work from and right now their configurations are all different so I have to push/pull a certain on each and its very bothersome. What I want to do is have ONE config file that I can use for all three that will allow me to do the following:

git push unfuddle
git pull heroku
git push unfuddle
git pull heroku

And I’m new to git, so I know that maybe I need heroku master or ‘heroku origin` or somethign?

Here is what my config file looks like right now:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@heroku.com:HEROKU-APP.git
[branch "master"]
    remote = origin
    merge = refs/heads/master
[remote "unfuddle"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@UNFUDDLE-APP.unfuddle.com:UNFUDDLE-APP/UNFUDDLE-APP.git

Obviously the git urls were changed to protect the innocent. What should I change so that I can easily push and pull to/from both of these repos?

  • 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-14T22:41:42+00:00Added an answer on May 14, 2026 at 10:41 pm

    First of all, there are three levels of config files:

    • config local to your current repo
    • config local to your current user (home directory)
    • config local to your system

    You can define as many remote repo addresses you want, and you can do it at the user level, provided you synchronize that config file from destop to destop

    git remote add origin1 git+ssh://remote.location/git/repository1.git
    git remote add origin2 git+ssh://remote.location/git/repository2.git
    git remote add origin3 git+ssh://remote.location/git/repository3.git
    

    If those commands add the remote addresses only in your current repo config file, you can manually move those to your current user config file.

    But on each repo, you need to define your remote tracking branch for the right repo:

    git branch --set-upstream master origin1/master
    

    (from Git1.7.0, quicker than the two git config branch you had to do before)

    So if you have the right synchronization mechanism (like dropbox for instance) for your user config file, you are all set.

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

Sidebar

Related Questions

I have a project I need to be working on from two different computers,
I've been experimenting with ASP.Net MVC, and have come across a problem that is
I've got a bunch of little projects in a bunch of different directories on
I am having to work in classic ASP for a small job. I am
SUMMARY How can I make my GUI application run on windows startup on a
I know this question has been asked a million times in various ways by
I am using Python to read in data in a user-unfriendly format and transform
Summary: I'm having some svn trouble, and after debugging it for a while, I'm
My application has 50 service endpoints (such as /mysite/myService.svc). It's hosted in IIS. Intermittently

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.