1

How can you share Stashes in VS2022?

enter image description here

I know this can be done with Git: Export a stash to another computer.

I've done research and can't find anyway with VS2022 or AzureDevOps and am hoping for CLI command or a 3rd party tool like the old TFS Sidekicks? I'm not sure its possible yet, even a solution with VS Code is acceptable.

The issue is our Common Libraries are Azure Artefacts and to debug we need to switch solutions to reference Projects. A Stash is perfect but can't be shared.

4
  • Why not push a branch with the changes? Commented Apr 21, 2022 at 5:20
  • I don't want to be telling people "First checkout the debug branch for xyz.SubSolution, stash those changes, then create a New Branch from Dev trunk (not the debug branch) and do your coding changes there, then revert the stash and check it works and merge back". Much prefer the process is simpler: "Get latest, New Branch, do your coding changes and if you need to debug/Edit & Continue then apply the "debug stash" and revert it before checking in". Commented Apr 21, 2022 at 6:57
  • The benefit of a branch is that it would be present in everyone's repos. The stash is basically a patch you can apply or revert, so from a well-known remote branch you could give directions to generate, apply, and revert the patch. It could also evolve over time without having to change the instructions (updated via fetch). Commented Apr 21, 2022 at 17:39
  • Ok, that seems feasible. "Checkout the Debug Branch and Stash those changes, if you ever need to debug apply the Stashes Debug diff's." Commented Apr 21, 2022 at 23:55

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.