The shelving operation in source / version control tools lets you set your pending changes aside temporarily and restore them at a later time. It is useful in situations where you need to switch tasks, but are not ready to commit your current work.
Questions tagged [shelving]
34 questions
479
votes
6 answers
Git Stash vs Shelve in IntelliJ IDEA/Netbeans
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 would you use it for?
For example on Update Project…

Subtubes
- 15,851
- 22
- 70
- 105
60
votes
3 answers
Unshelving in TFS: What does it mean?
Here's the part I get: When you shelve in TFS, it makes a server copy of the changes so they are not lost, but does not check them into the source code trunk/branch you are working on.
Question: Under what circumstances would you use the "unshelve"…

brentlightsey
- 2,026
- 1
- 19
- 23
40
votes
4 answers
hg shelve equivalent of git stash drop
I have the hg shelve (not attic) extension installed, and I want to drop a patch. In git it would be git stash drop. How do I do this using the shelve extension?

undefined
- 6,208
- 3
- 49
- 59
38
votes
3 answers
How can I easily diff/compare 2 shelvesets in TFS?
Is there a way to compare 2 shelves in TFS without having to resort to unshelving both in separate workspaces and diffing the files?

koregan
- 10,054
- 4
- 23
- 36
31
votes
1 answer
What is a Perforce "shelved" file?
In Perforce, what is a "shelved" file? What is the purpose of shelving a file that is open for edit in the workspace?

Derek Mahar
- 27,608
- 43
- 124
- 174
24
votes
5 answers
Perforce — move a shelved Changelist from main to branch?
I wonder if there is any way to move a Changelist which was created editing on /main/ to a branch /dev/branch?
I have six such Changelists with a lot of files in them. I shelved all files and would like to move them to the branch to keep working…

Martin Schulze
- 2,091
- 2
- 22
- 27
23
votes
8 answers
Branching vs. Shelves in TFS
I've always used SVN in my past, and now that we have moved past the initial phase of a project we need to figure out our branching process for future enhancements.
In reading up on this, we see that TFS has Shelving.
How do they compare? What are…

Clarence Klopfstein
- 4,682
- 10
- 33
- 47
20
votes
2 answers
How can I instruct Perforce to merge instead of overwrite or revert when unshelving a file?
How can I instruct Perforce to merge changes into an existing, open, and modified file in the workspace when unshelving a file shelved in the depot? The only options that Perforce appears to offer the user is to overwrite or revert the existing…

Derek Mahar
- 27,608
- 43
- 124
- 174
18
votes
5 answers
How to Hg Shelve Added files uncommitted yet
I am using Mercurial Shelve extension to shelve changes from command line. It works nice except when the changes that i like to shelve contain new added files(a) in working directory. Basically, it shelves everything except the new added files. I…

latvian
- 3,161
- 9
- 33
- 62
12
votes
3 answers
Shelving vs Workspaces in TFS
Currently I am working on a project that uses TFS as source control. I am in the middle of implementing a piece of functionality, but am blocked by work that needs to be done by outside resources. Since the functionality is not fully complete, I…

JChristian
- 4,042
- 5
- 29
- 34
11
votes
1 answer
TortoiseSVN shelve uploads data
Per the docs:
Shelves are purely a local client feature
Why then does it upload megabytes of data?
217 MB transferred, even though my shelved files when Exported amount to 0.7 MB.
How does shelving work in svn? Does it create an invisible branch…

Jakub Fojtik
- 681
- 5
- 22
11
votes
1 answer
Mercurial: graft vs. record vs. qrecord vs. shelve vs. transplant vs. dirstate vs. queue
I am new to Mercurial and still somehow in the evaluation process, so these four concepts are kind of confusing for me. Some are mentioned to be an equivalent to Git's Staging/Index concept, or some even a better one than Git's Staging.
How do the…

Iodnas
- 3,414
- 24
- 26
9
votes
4 answers
Shelving and UnShelving TortoiseHG code on two separate computers?
Can i shelve some code I've been working on, at work, with TortoiseHG .. go home .. pull/merge/update ... and then UnShelve and continue working at home?
Does TortoiseHG offer this?
At work, I created a new shelve and added all my 'touched' files…

Pure.Krome
- 84,693
- 113
- 396
- 647
8
votes
2 answers
How can I use Perforce Shelving to have one person create a change and another person submit it?
I want UserA to be able to create a changelist in Perforce and then Shelve it. I would then like UserB to be able to unshelve that changelist and submit it.
This sounds simple, but Perforce unshelving doesn't seem to work the way I would expect.…

Jay Spang
- 2,013
- 7
- 27
- 32
8
votes
1 answer
IntelliJ 'Shelve Changes' equivalent feature in VS code
I am exploring VS-Code and I am used to the 'Shelve Changes' feature in IntelliJ.
I was wondering if there is an equivalent feature or if there is a way to store temporary changes in VS code.

user14934989
- 93
- 4