Linked Questions

23 votes
1 answer
31k views

I have many changed files and would like to stash only some of the modified files. As an example, my repository looks something like: Changes not staged for commit: (use "git add <file>..." ...
user avatar
1 vote
1 answer
2k views

I have total 30 files and I have made changes in 15 files. Out of those files I have to make 2 stash. The first stash will have some files and in another stash, I need the other files. Also, there ...
ankur's user avatar
  • 293
3870 votes
33 answers
1.4m views

How do I stash only one of the multiple changed files on my branch?
Rachel's user avatar
  • 104k
2588 votes
14 answers
1.5m views

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 master # ...
ynkr's user avatar
  • 28.7k
537 votes
7 answers
266k views

I am very unfamiliar with the shelve aspect of Git (EDIT: not an aspect of Git, but rather IntelliJ IDEA feature of shelve). If stash is used to put aside unfinished work what is shelve then? What ...
Subtubes's user avatar
  • 17k
164 votes
6 answers
61k views

I was surprised that git unstashed the stash from <otherbranch> (latest stashed) because I thought stashes were branch-specific. Is git stash branch-specific or for the whole repository? If it ...
amphibient's user avatar
  • 31.7k
38 votes
11 answers
43k views

How do I easily remove several files without manually typing the full paths of all of them to git rm? I have plenty of modified files I'd like to keep so removing all modified is not possible either. ...
Tower's user avatar
  • 103k
1 vote
3 answers
2k views

I want to store some files with modifications temporarily and later restore the changes using TortoiseGit. Some thing like the git stash. But I dont see any option to select the files to be stored. ...
Syam Kumar S's user avatar
4 votes
2 answers
4k views

When I run the new version 2.13.0.windows.1 of its new command stash -p -- {pathspec} as git stash -p -- AB.Dir1/Dir2/DestinationHierarchyCreator.cs it reports the error error: pathspec 'AB.Dir1/...
ΩmegaMan's user avatar
  • 32.2k
4 votes
4 answers
2k views

Is there an RSS/Atom feed or a mailing list for updates to Git that I can subscribe to? I find it hard to keep up-to-date with the latest version, as I have no way on knowing when a new version is ...
shea's user avatar
  • 1,184