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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:29:23+00:00 2026-06-14T06:29:23+00:00

So far i only used GIT to version control my local files, i am

  • 0

So far i only used GIT to version control my local files, i am now trying to set up a staging environment on a remote server so that later i can push my local development files to the staging server using GIT and eventually to a production server.

So what i did was:

  • initallizaed a bare git repository on my staging server

  • Added that server as a remove on my local version of the site

  • Then ran : git push origin master

I get no error message yet the staging repo is empty, well only the .git folder got updated but the actual files didn’t follow.

I found a similar question here Git: Files pushed from local repo not showing up in remote git repo, though i still don’t get what i am supposed to do to push my local files?

What would be the proper way to go to achieve this setup ?

Thanks

  • 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-14T06:29:25+00:00Added an answer on June 14, 2026 at 6:29 am

    Ok so here is what i got so far.

    Pushing a git repo to a remote server does not upload the actual files but rather the “blueprint” of these. So once a repo has been uploaded to a remote server, to be able to work on these files you need to clone that repo. After that the workflow is:

    1- Push the files from local to remote repo (central sort of repo)

    2- Cloned instances can pull the changes from that repo to stay up to date.

    If i got that wrong please correct me.

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

Sidebar

Related Questions

I'm trying to write some C code which is portable only so far as
Which version control system should I use for a Rails app: Git or SVN?
I need to know what folder names are commonly used by Version Control systems.
Up until now I've only used DLL's as a source for plugins in my
As far as I know, XAML is only used in WPF and Silverlight ,
So far I have only used standard libraries in my programs. I'm just making
I have a semi-comprehensive KO setup. But so far I have only used KO
I'm trying to access a private remote SSH git repository via the Eclipse 'egit'
Thus far i have only used glDrawArrays and would like to move over to
I've been using GWT for quite some time now and have only used the

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.