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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:57:44+00:00 2026-05-23T14:57:44+00:00

I have a remote development server and every time when I do a code

  • 0

I have a remote development server and every time when I do a code change on my local machine I need to make sure the code I’ve changed works properly on the dev (remote server).Below is the setup I have so far:

  1. On the remote server I have:

    A git repository created on a folder called dev with a bunch of files (I used git init and than git add . – to add all those files to the repository).

    Then from that repository I created a branch called master-copy.

  2. On my local machine I created a clone from the remote server’s master-copy branch. Now every time when I make changes on my clonen copy I do a push to the master-copy branch on the remote server.

Is there a way to update the files located on dev folder (on the remote server) when I do I push from my local machine cloned copy to the master-copy branch (on the remote server)?

  • 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-23T14:57:44+00:00Added an answer on May 23, 2026 at 2:57 pm

    You should look at git-receive-pack for information on installing hooks which are triggered when you push to a repository.

    See Git Book for some examples of scripts which can checkout for you after pushing.

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

Sidebar

Related Questions

I am using my local machine as a development server. I have my hosts
I'm using PHP version 5.3.2 on both my local development server and remote web
I need to change my unit test from local to remote tests and so
The situation is following. I have a local (development) PHP server (Win + IIS)
I have a remote server that hosts my subversion repository on a non-standard ssh
I have a remote actor (client) which is registering with another remote actor (server)
I have a remote server that has win2003 installed I can connect to the
I have a local development webserver set up using Win7 and IIS7. I often
I have django 1.3 on the remote server behind Nginx. If I run django
I have a ASP.NET application running on a remote web server and I just

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.