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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:49:27+00:00 2026-05-25T19:49:27+00:00

I did a git stash on production but then others pushed more changes to

  • 0

I did a git stash on production but then others pushed more changes to the repository. So is there a way merge them both together. I can see the changes in the stash but not in the current head.

Git fsck shows

git fsck
dangling tree b00308a00025bbe3eaa370b326d82dae5b9403cc
dangling tree e714ea6c807bbdd039abfe8a8fb779c02403c3b3
dangling tree cc1e0f3768af3e5cb22fdfde7603f663c1812d78
dangling tree f51f1aa3298e21affb0b2ee31343f2c47df438c3
dangling tree b530b1163c677de735d82d7c11081921b35807ae
dangling tree bfb862564922f45cc272daac3e1d131fd254a8ed
dangling tree cdd02c02d05dfbc928c4ce9123fc4c360299395c
dangling tree b851786925e57bb2d7e71badefc5171b9110ccd5
dangling tree ae5caf6ede4e4b5f9c344ac3e749aaed6bee5e96
dangling tree e56ad067c775f25d18cab3520f3f1add2731c67d
dangling tree 1871498602802cbe324ed746395ac300884622ce
dangling tree c0f61e31611cf5fbed159737e9f04b9b214ed663
dangling tree 7bf8bdd7e6cca37cd1929473d50d2914cc1f94c1

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-25T19:49:27+00:00Added an answer on May 25, 2026 at 7:49 pm

    One of the points of stash is that you can reapply it anywhere. You stashed away your changes, so they are stored as relative to the commit that was checked out then, but now that you’ve checked out a different commit, you’re free to use git stash apply or git stash pop to apply the stashed changes. (pop deletes the stash once they’re successfully applied; apply leaves it.)

    Of course, if things have changed significantly, the stashed changes may no longer apply cleanly. Git will treat this as a merge conflict, and you can resolve it as you would any other merge conflict.

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

Sidebar

Related Questions

I recently did a git stash , then did some work on the branch
I did a git stash pop and ended up with merge conflicts. I removed
I had a lot of local changes. I just accidentally did git merge another_branch
I stashed some local changes before doing a complicated merge, did the merge, then
This seems very foolish mistake, I just did a git stash pop on a
I accidentally saved a file on the wrong branch. Then I did git reset
I have a bare git-svn repository and did a 'git svn fetch' on it.
By mistake I rm -rf a directory in my git repository. The changes are
I did git pull origin newbranch:newbranch ... but for some reason.. this tried merging
I did: git co upstream/master # To no branch. <then did a trivial edit

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.