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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:13:50+00:00 2026-06-15T13:13:50+00:00

I’m working with Git on a project, and for reasons I don’t need to

  • 0

I’m working with Git on a project, and for reasons I don’t need to get in to, I’m finding that I may have to make some changes to the code, then stash them as opposed to committing them. I may need these changes sometimes, but not all the time and don’t necessarily want them to be permanent. However, the job could be big one and I’d like to try to save myself some problems.

Suppose I save multiple git stashes so my stash looks like this:

stash@{0}: First change
stash@{1}: Second change
...
stash@{10}: Last and final change

Is there a way to pop all of these changes in a single command? Or perhaps combine them together into something like stash@{11}: All previous changes together?

Or is this even a good idea at all?

EDIT: After some research, I realized that I really just should be branching and not using git stash in this way. Thanks for the answers!

  • 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-06-15T13:13:53+00:00Added an answer on June 15, 2026 at 1:13 pm

    Or, maybe make a branch? Branches are cheap in Git and won’t be pushed to a remote repo unless you tell Git so. Example in practice.

    Create a branch named “my-hidden-feature” :

    git checkout -b my-hidden-feature
    

    Edit and commit things (for instance, a local configuration file) :

    touch test.config               # Create a new file
    git add test.config             # Add the new file
    git commit -m "Test commit"     # Commit your hidden feature
    

    Return to your original code and do some work :

    git checkout master             # Return to the main branch
    ...work here...                 # Do some work
    git commit -am "Work on master" # Commit your work
    

    Oh, are you in need of the hidden feature? Easy :

    git checkout my-hidden-feature  # Go to your hidden branch
    git rebase master               # Update the hidden feature with new commits from master
    ...do some stuff...             # Do some work on the hidden branch
    git commit -am "A new hidden commit"
    

    And, on and on!

    Ah, last but not least. If you’re working from the command line, I highly recommend tools like oh-my-zsh that have a plugin that can display the current branch in your terminal. Very, very useful if you do not want to get lost in Git limbo.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I don't have much knowledge about the IPv6 protocol, so sorry if the question
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I need a function that will clean a strings' special characters. I do NOT
I have thousands of HTML files to process using Groovy/Java and I need to
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

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.