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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:46:59+00:00 2026-05-12T18:46:59+00:00

Ok, a few things I’m not quite sure about. For starters: I have a

  • 0

Ok, a few things I’m not quite sure about.

For starters:

  • I have a “bare” repo on a VPS in a remote DC.
  • I have a workstation at work that I also code on.
  • I have a workstation at home that I also code on.

1 – When I set up my initial repo on one of my workstation (i think Git calls this the master), should I check out and work from a different directory? Like subversion.

2 – When I want to work on the code at work, I’m confused, how do I go about making commits to the LOCAL repo on my work desktop and then at the end of the day, push my changes to the “bare” repo on my VPS so that I can pull the updates to my home desktop.

I tried using clone but every push I make from my home desktop ended up w/ me pushing the changes back to the remote 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-05-12T18:46:59+00:00Added an answer on May 12, 2026 at 6:46 pm

    1 – master is git’s default name for the main branch of a repository. It does not refer to the entire repository, but to that one line of development. You don’t need a separate working directory – the general idea of local git development is to work in the directory, commit changes to the repository, then push them upstream as necessary.

    2 – You should have a remote in both your home and work repos pointed at the bare VPS repo. If you created your repo by cloning the VPS repo, it will be ‘origin’. Pushing to and pulling from origin are the defaults, so this is why your pushes are going there. This is the designed behavior – there’s a good chance that when you clone a repo, it’s the one you want to get updates from and push your changes back to.

    I would suggest having both home and work treat the VPS repo as origin. You can then push to and pull from it on each computer when necessary, simply using git push and git pull. If one of your repos isn’t already set up this way, you could either reclone the VPS repo to do it automatically, or use

    git remote add origin <url-of-VPS-repo>
    git config branch.master.remote origin
    git config branch.master.merge = refs/heads/master
    

    The last two lines let git know that you would like your master branch to be associated with the master branch on the origin remote (your VPS).

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

Sidebar

Related Questions

I have found a few things on the web about PHP+GD regarding image manipulation,
I have tried quite a few things but I still don't know how can
I have got few things to work e.g. Using - FB.login(function(response) { if (response.authResponse)
I've seen a few things that find duplicates, but not quite what I am
I'm curious about few things about text algorithms. For example we have binary word
Okay I have a few things to ask about. I've included the jsfiddle version
I have a long sql query that calculates a few things about payments and
I have a few things about saving logged in user, save_model() and save_formset() from
I have seen a few things written about this and remember one where there
I am trying to separate a few things in here. I have a program

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.