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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:46:24+00:00 2026-05-27T02:46:24+00:00

I am trying to bed down a development process for our team. We have

  • 0

I am trying to bed down a development process for our team.

We have 3/4 disperate developers working on our code base at any one time.

We have started using GIT and the idea is that is piece of work is more than a live fix, then they fork the master branch.

Everyone has their own dev environment on the server, and we have one staging environment which should at all times be a copy of the master branch.

Developers develop on their local, then merge back into the master branch, which should then push their changes to the staging server (I want to set up something like this).

If all is approved, then the changes should be copied live. I want to automate this somehow, not sure how exactly. We are using GitHub, so I’m sure there are automated deploy scripts out there.

We only have 1 live server though so it’d be nice if only changed files on the master branch could be deployed to the live server.

Any ideas how to do this?

Is this approach sound?

Any other comments/ warnings?

Is a load balancer necesary to do things like this?

  • 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-27T02:46:24+00:00Added an answer on May 27, 2026 at 2:46 am

    My company following nearest by this blog.

    We create the master branch for production. My case is for web development.

    Step we do is

    Developer fork their feature/bug from master

    git checkout -b feature/featureA
    git checkout -b bug/B
    

    With this way, we will got the fresh code with already in the released line. In staging server, we use testing branch. So, when any feature want to going test, it will merge to that branch

    In staging server we use

    git checkout testing
    git pull
    

    There are release branch handling the hot fix, every hot fix will merge to this branch before merge to master. The idea is that release branch will packing some commits before merge to master which if the problem occurs, it just use command like

    git reset --hard HEAD^
    

    for temporary.

    Let see my full working Step

    git checkout master # Go to Master
    git checkout -b feature/New  # New branch
    

    Email come from boss to fix critical bug

    git stash 
    git checkout master
    git checkout -b hotfix/a
    

    do things

    git commit
    git checkout release
    git merge hotfix/a
    git checkout master
    git merge release # In case that you want to pack all ready to production
    

    In production

    git tag -d previous
    git tag previous
    git pull
    

    Oops! not working

    git checkout previous
    

    New commit merged

    git checkout master
    git pull
    

    Continue my job

    git checkout feature/New
    git stash pop #Restore workspace
    git commit
    git checkout testing # ready to mix a test
    git merge feature/New
    

    Ready to release the feature

    git checkout release
    git merge feature/New
    

    This is because all things in testing branch ready to deploy. So, when merge all ready feature to release branch, now, you can make final test.

    When everything now go production, we do

    git checkout testing
    git merge master
    git checkout release
    git merge master
    

    Automate script

    I think you may look into .git/hooks/post-commit.sample for hookup some script after you commit the code? anyway, I never use it.

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

Sidebar

Related Questions

I'm in the process of trying to move our company from SalesForce to SugarCRM,
Trying to honor a feature request from our customers, I'd like that my application,
I'm trying to create a custom route like: search/result/city/p1/state/p2/zip/p3/min/p4/max/p5/bed/p6/bath/p7/cats/p8/dogs/p9/parking/p10 Where search is the controller
I'm trying to extract some information from a webpage using php cURL+preg_match or any
I'm experitmenting with the Twitter API (OAuth). I have a test bed that can
I have a C# (WinForm) program that supports scanning using WIA. I am trying
Trying to create an SSIS package to process a Datacube. Using SMS 2008, I've
Trying to launch and pass tel. no. to skype by this code from my
I m trying setup a cassandra cluster as a test bed but gave the
I am trying to connect to the Nominet EPP test bed, but I am

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.