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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:01:06+00:00 2026-05-27T06:01:06+00:00

In git stash show stash@{x} what values can x take(apart from the whole numbers

  • 0

In

git stash show stash@{x}

what values can x take(apart from the whole numbers pointing to the serial number of the stash)?

  • 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-27T06:01:06+00:00Added an answer on May 27, 2026 at 6:01 am

    The only values I know of are the one listed by:

    git stash list
    

    Ie the “whole numbers” you are referring in your question (0, 1, 2, …), or time-based syntax:

    git stash man page:

    The latest stash you created is stored in refs/stash; older stashes are found in the reflog of this reference and can be named using the usual reflog syntax
    (e.g. stash@{0} is the most recently created stash, stash@{1} is the one before it,
    stash@{2.hours.ago} is also possible).

    If so, the list of values are part of the ones specified in git rev-parse, mainly inspired from the following two categories:

    • A ref followed by the suffix @ with a date specification enclosed in a brace pair (e.g. {yesterday}, {1 month 2 weeks 3 days 1 hour 1 second ago} or {1979-02-26 18:30:00}) to specify the value of the ref at a prior point in time.
      This suffix may only be used immediately following a ref name and the ref must have an existing log ($GIT_DIR/logs/<ref>).
      Note that this looks up the state of your local ref at a given time; e.g., what was in your local master branch last week.

    • A ref followed by the suffix @ with an ordinal specification enclosed in a brace pair (e.g. {1}, {15}) to specify the n-th prior value of that ref.
      For example master@{1} is the immediate prior value of master while master@{5} is the 5th prior value of master.
      This suffix may only be used immediately following a ref name and the ref must have an existing log ($GIT_DIR/logs/<ref>).

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

Sidebar

Related Questions

When I show a git stash with git stash show , I get a
Is there a --staged (aka --cached) option for comparing files from a git stash?
Is there a maximum number of git stashes, or can you have as many
I recently did a git stash , then did some work on the branch
This seems very foolish mistake, I just did a git stash pop on a
git status tells me that my branch and the one I started from on
git-cherry lets me find all the commits missing from upstream. How do I find
I did a git stash pop and ended up with merge conflicts. I removed
I'm able to list git stashes by date with git stash list --date=local but
Does hg, svn or others have an option like git stash?

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.