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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:12:41+00:00 2026-05-20T23:12:41+00:00

Our team has recently migrated to git. We have production web application server with

  • 0

Our team has recently migrated to git.

We have production web application server with some small changes to code

  • ultra hot hotfixes specific to this installaton
  • some debugging statements for those bugs that can’t reproduced in our testing enviroment

I think, we can’t commit those in server repo.

When we had svn update either merged changed file or not merged. Now

 git stash; git pull; git stash pop

does the trick for me

How can I automatically detect those cases when git stash pop will cause conflicts

making production working copy broken?

I want send mail to resolve these cases manually

before they occur like be advised, pull cancelled (conflicts)

  • 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-20T23:12:41+00:00Added an answer on May 20, 2026 at 11:12 pm

    I would not want to bear the risk of having a merge conflict occur on a production server. This sounds all wrong to me.

    From your post, I can infer that you have issues in production that you can’t reproduce in testing/staging. To help detect those, you added additional instrumentation to your application. This is a common approach, although you should really try to get failures reproduced in Q&A (usually it’s worth the initial hit in terms of long-term benefits).

    The next thing I’d infer is that you’re directly manipulating code on a production server. You should NEVER EVER do this. You’re already using git which gives you a great flexibility of how you can manage things, there are smarter solutions to your problem.
    Here’s what I’d to:

    1. Get those changes from the server (create a patch or something)
    2. Put those changes on to a local branch in your dev repo.
    3. Whenever you change something rebase that local branch on top of your masters HEAD. Resolve conflicts locally.
    4. Since you’ve mocked with history, you need to force a push into the production repository, see How do I push amended commit to the remote Git repository? for details.

    It can also be debated whether you wouldn’t want to “productize” the additional logging you added, making it part of your non-functional requirements.

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

Sidebar

Related Questions

Our team has recently inherited code which is extremely disorganized. As a result, my
Our team has some code guidelines that I would like to enforce via stylecop
Our team has recently migrated from Visual Studio 2008/.NET3.5 to Visual Studio 2010/.NET4.0. Now,
Our web team has been asked to build some user interfaces in Sharepoint. The
Our team has recently been working on a logic and data layer for our
Our team has recently been considering pushing out a minor registry fix to users
Our Team Foundation Server has to build three different versions of the same solution.
We recently ran in to a problem.Our team has automated test scripts with selenium.
I am working in a team and recently we have lost all of our
my team has made the decision recently to use Moq as our mocking framework

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.