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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:28:40+00:00 2026-05-22T03:28:40+00:00

Coming from a simple edit directly on ftp workflow, I want to try source

  • 0

Coming from a simple “edit directly on ftp” workflow, I want to try source version controlling. As I can imagine, GIT is a very popular choice.

I’m a single developer. I have multiple websites I work on (each one in /home/domains/) on the remote server (Linux) and I wish to start working on them locally (Mac OS) and then pushing them back (updating the remote files).

I didn’t however understand how git is supposed to work for me. It looks like I have to have a “bare” repository, which I can’t have because my projects already have files and folders, so that means I’d have to create a new bare repository and then push stuff locally and afterwards pull remotely.

This seems a bit weird, having 3 repositories (1 local and 2 remotes) when I only would work on 2 folders.

Can I get some advice?

  • 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-22T03:28:41+00:00Added an answer on May 22, 2026 at 3:28 am

    There are two standard, sane, options if you have online access between your server and your local system.

    First, you can add a remote for the other repository and pull all committed changes from the other repository before you start making changes. This means, for example, if you make a change on the local system, you will have to ssh over to the server and pull to get the changes over there.

    Second, you can create a bare repository to act as the master. This is the standard model for shared repositories, especially when there are multiple users involved but it works when one user is involved and
    is preferred when there might not be full-time bidirectional access between the two systems. This bare repository could be on the mac system, on the linux server, or on a third system (such as github, for example). The workflow in this case would be to pull all changes from the bare repository, make a change, commit, and then push that change to the bare repository. Absent special hooks, you still would need to ssh over to the server and issue a pull to update the live website.

    You could create the new repository by doing a git clone --mirror --bare from the server repository. Afterwards you would git add remote origin URL-TO-NEW-BARE-REPOSITORY on the server. You could either do the same on the macosx system or git clone URL-TO-NEW-BARE-REPOSITORY

    It is technically possibly to configure the system to allow the macosx system to push to the checked out linux working directory. I do not recommend this, especially if you might be making changes on that repository as well, since the process might/would destroy any uncommitted change. A similar problem could happen with automatic hooks which would automatically send/checkout incoming commits to the live webserver directory.

    For reference purposes, consider http://toroid.org/ams/git-website-howto and http://joemaller.com/990/a-web-focused-git-workflow/

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

Sidebar

Related Questions

I have a simple question. Coming from a java background and having worked extensively
Coming from a corporate IT environment, the standard was always creating a class library
Coming from a Classic ASP background, I'm used to multiple forms on a page,
Coming from a background, I'm familiar with GUI editors that do a poor job
Coming from C++ to Java, the obvious unanswered question is why didn't Java include
Coming from a C# background the naming convention for variables and methods are usually
Coming from a desktop background I'm not sure exactly how to pass the exceptions
Coming from a java background, one of the things I am used to is
Coming from C++, I find generic programming indispensable. I wonder how people approach that
Coming from a Perl background, I have to say I prefer cpan Foo::Bar to

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.