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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:57:35+00:00 2026-06-12T14:57:35+00:00

I have developed a web-app in PHP, and I have been using GIT in

  • 0

I have developed a web-app in PHP, and I have been using GIT in my local machine to source-control it.

Now I have a simple hosting at MediaTemple, and I’d like to publish my site, just using GIT. So, how do I do that?

I thought about making git init at the server and cloning my local repo, after that, I could set my local repo remote origin to be the server one, so all I have to do to publish is a git push origin master on my local machine. But I am concerned about how many .git/ folders and docs is my server going to have, and if that’s dangerous for the server.

I only want to have the needed files there, read: source files, not source control files.

Any suggestion? Or should I do it just this way and forget about hidden files?

Thanks in advance!!

  • 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-06-12T14:57:36+00:00Added an answer on June 12, 2026 at 2:57 pm

    When you do git push, your remote working directory is not updated (i.e. git checkout will not automatically happen on the remote side). You can use git pull from the remote side like:

    ssh root@my-server 'cd /my/remote/repo && && git pull origin master'
    

    if you have remote control of your server.

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

Sidebar

Related Questions

I have developed a web app using a webservice. Everything works fine in the
I have developed a PHP web app. I am giving an option to the
I have developed a web app in ASP.NET MVC which we are using internally.
I have been asked to re-develop an old php web app which currently uses
I have a PHP web app located on shared hosting . My goal is
i have a web service developed with PHP bith (client and server ) using
I have developed a web application using Netbeans 6.7 and Ant. The webapp works,
I have developed a web project. Which is generating log file using log4j. But
i have developed a web servcies in my local system with name (inbox service).
I have developed a small web app. This app allows users to upload images.

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.