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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:46:52+00:00 2026-05-25T17:46:52+00:00

I have a local git repository with two folders running on my windows machine.

  • 0

I have a local git repository with two folders running on my windows machine. One of the folders has .net code, the other has php code.

What I’d like to do is have the php code stored on a Ubuntu installation I have running on VirtualBox and git would use that instead of the windows directory.

How would I go about setting that up? I tried to create a shortcut to the ubuntu folder but git didn’t want to follow it.

  • 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-25T17:46:53+00:00Added an answer on May 25, 2026 at 5:46 pm

    Ideally, you install git on your Ubuntu guest, and activate git daemon.
    That will allow you to push your repo from the Windows host to your Ubuntu guest.

    Then, one solution would be to plit your repo in two repos, that you can keep joined in one global repo through submodules.
    That would allow you to push only the one with php content to your Ubuntu.

    Or, simpler: you push everything, and have a post-receive hook deploying your php code where you need it.

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

Sidebar

Related Questions

I am using git for windows to manage a local project. I have two
I have merged two branches in a local Git repository, with a bunch of
I have a Git repository on my local machine that I cloned from my
I have a local git repository which tracks a remote SVN repository via git
I have a local Git repository I've been developing under for a few days:
I have a local git repository created with git svn clone . I make
I have two git repositories: report.git (Master on remote location) cloned.git (Local) I lost
I have a local Git repository setup on my laptop. I would like to
I have a local git repository a central repo at github. I'm working on
I have a local git repository that I eventually plan on publishing as open

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.