About 31,500 results
Open links in new tab
  1. What does `git stash push` stash? - Stack Overflow

    Jan 23, 2019 · Does git stash push stash the changes to the last committed state (i.e. the differences between the current working tree directory and the last committed state), or stash …

  2. Is it possible to push a git stash to a remote repository?

    In git, is it possible to create a stash, push the stash to a remote repository, retrieve the stash on another computer, and apply the stash? Or are my options: Create a patch and copy the patch ...

  3. How do I name and retrieve a Git stash by name? - Stack Overflow

    How do I save/apply a stash with a name? I don't want to have to look up its index number in git stash list. I tried git stash save "my_stash_name", but that only changes the stash …

  4. What's the difference between "git stash save" and "git stash push ...

    Jun 21, 2017 · Is git stash push a command? You can show, list, drop, pop / apply and as you mentioned, save. But to push a stash, I'd branch and commit and then push the new branch to …

  5. git - How do you stash an untracked file? - Stack Overflow

    May 7, 2009 · git stash --include-untracked Alternatively, you can use the shorthand -u instead of --include-untracked, or simply git stash --all (see warning below for this one) which stashes all …

  6. How to stash only staged changes in Git? - Stack Overflow

    Run git stash --keep-index. This command will create a stash with ALL of your changes (staged and unstaged), but will leave the staged changes in your working directory (still in state …

  7. How can I git stash a specific file? - Stack Overflow

    Sep 3, 2014 · How can I stash a specific file leaving the others currently modified out of the stash I am about to save? For example, if git status gives me this: younker % git status # On branch …

  8. git - How do I stash only one file out of multiple files that have ...

    git stash push -p -m "my commit message" -p let's you select the hunks that should be stashed; whole files can be selected as well. You'll be prompted with a few actions for each hunk: y - …

  9. How to stash only unstaged changes in Git? - Stack Overflow

    Which is basically: git commit -m 'Save index' git stash push -u -m 'Unstaged changes and untracked files' git reset --soft HEAD^ This will do exactly what you want. If you do not wish to …

  10. Is git stash stack pushed to the remote repo? - Stack Overflow

    May 30, 2014 · One other note about the "stash stack" The "stack" is made by using the reflog for the refs/stash reference. When you write stash@{1}, this uses the same gitrevisions rules to …