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

  • Home
  • SEARCH
  • 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 7528807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:29:04+00:00 2026-05-30T04:29:04+00:00

here’s the description of my everyday work: Two developers working in many small features

  • 0

here’s the description of my everyday work:

Two developers working in many small features or fixes, let’s say 3-4 per day for each developer.
I need to be able to work on features A – B – C at the same time, while my coworker works on feature D and E.

Monday:
Feature A is pushed to a staging server for client review.
Feature B is pushed to the same staging server for client review.
Feature D is pushed to the same staging server for client review.

Tuesday:
We receive approval from the client for A and D (but not for B). And they need to go live with those changes immediately.

Wednesday:
Feature C is pushed to the same staging server for client review.
Approval for B is finally received.

Thursday:
Feature B has to be pushed to production immediately.

Friday:
An error is discovered in the last production release and we need to roll back to the previous version.

This can’t be treated as a Scrum-like process because there’s no chance of grouping features into Stories or sprint planning. This is more like a maintenance process (maybe Kanban?).

Can you give an example of how you would handle this using Git? Assume that right now, we have only one master branch and whenever we want to push anything to staging or production, we have to “git pull” making all changes live (even the unwanted ones). What about git “cherry-pick” to retrieve specific commits? One branch per feature seems too onerous as we have too many features. If you could give specific examples of Git commands and branches (only to show the main idea, don’t need to be 100% correct) that would be great.

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-05-30T04:29:07+00:00Added an answer on May 30, 2026 at 4:29 am

    I finally chose the following way of handling this:

    • One Master remote repository.

    • One local branch on staging.

    • One local branch on production.

      git checkout -b staging #on staging server
      git checkout -b production #on production server

    Programmer A needs to work on a feature/patch A:

    #local development box
    git checkout master
    git checkout -b issue-A
    #work on the feature
    git push origin issue-A
    #log in to the staging server
    git checkout staging
    git pull origin issue-A #merge with the staging branch, changes are live on staging.
    

    The same goes for programmer B working on feature B.

    Going live on production:

    #log in to the production server.
    git checkout production
    git pull origin issue-A #merge with the production local branch, changes are live on production.
    

    Also, local production branch can be pushed to master when changes are live and approved:

    git add <files>
    git commit <commit info>
    git push origin master
    

    This is what worked the best in our situation, hope it helps someone.

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

Sidebar

Related Questions

Here's a basic regex technique that I've never managed to remember. Let's say I'm
Here an example of my checkbox list http://jsfiddle.net/YnM2f/ Let's say I check on G
Here is my code, which takes two version identifiers in the form 1, 5,
Here's a coding problem for those that like this kind of thing. Let's see
Here is my code...I have two dimensional matrices A,B. I want to develop the
Here is my code sample, let me know if it can be further improved?
Here is my code (Say we have a single button on the page that
Here's a problem I ran into recently. I have attributes strings of the form
Here is the issue I am having: I have a large query that needs
Here's my scenario - I have an SSIS job that depends on another prior

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.