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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:04:39+00:00 2026-05-26T17:04:39+00:00

Suppose that I have stashed some changes and I want to add further changes

  • 0

Suppose that I have stashed some changes and I want to add further changes into the same stash (such as stash@{0}). Is there an easy way to do this? What about combining two stashes into a single one?

  • 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-26T17:04:40+00:00Added an answer on May 26, 2026 at 5:04 pm

    I don’t see any “git stash” option allowing to modify an existing git stash.

    A possible way to achieve this would be:

    • stash your additional changes (stash@{1})
    • stash everything else (stash@{2})
    • create a tmp branch from the commit (HEAD) your are currently modifying
    • git stash pop twice
    • git stash, creating a new stash@{1} with both content in it,
    • deleting your temporary branch and checkouting the initial branch you where in
    • git stash pop once (to restore all the pending changes)
    • continue your selective stash

    Five years later, Powerslave proposes in the comments:

    The branching magic is completely unnecessary.
    You could simply

    1. Create a new stash with whatever you have.
    2. git stash apply both changesets (you can git stash pop instead, but in that case you’re in trouble if you accidentally screw up).
    3. Create a new stash with these merged changes.
    4. git stash drop the other two changesets if you used apply instead of pop
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

suppose that I have made some changes since last update (revert) to my a.b
Suppose that you have two huge files (several GB) that you want to concatenate
Suppose that I have a method called doSomething() and I want to use this
I want to change some values in my multidimension array in PHP. Suppose that
I have a web application that loads some 50 tables from SQL Server into
Suppose that you have a lengthy string (> 80 characters) that you want to
Suppose that I have the following string: http://www.domain.com/?s=some&two=20 How can I take off what
Suppose that I have a comments form, and I want to prevent bad users
Suppose that I have a document like this, and I want to search for
Suppose that I have a string in scala and I want to try to

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.