this post was submitted on 15 May 2024
7 points (81.8% liked)

Visual Studio

79 readers
1 users here now

A community for the visual studio IDE. https://visualstudio.microsoft.com/

founded 9 months ago
MODERATORS
 

Is there an extension that allows for automatic stashing on branch switch like GitHub desktop does?

There was an a proposal about it, but it got declined: https://github.com/microsoft/vscode/issues/86668

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 6 months ago (1 children)

You'd probably be better off switching to a more powerful git gui like fork

[–] RustyNova 1 points 6 months ago (1 children)

Honestly the only reason I'm using the GUI for switching branches is that I don't want to clutter my terminal with git commands.

Despite it doesn't help me at all. I don't want a separate app. Even more if it's $60 for a wrapper around the cli. I rather learn the cli so I can use it everywhere. And finally... No Linux port.

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago)

The reason I recommend it is because you can't rely on the CLI itself. Git commands can do weirdly counter-intuitive things depending on the version and settings of your git install. A command that works for one person may not work for another. Or worse, appear to work and fail silently. Or even worse, cause a problem that you won't find out about until later (if you can even determine the root cause at all).

That's why I recommended Fork.

Also, it's not $60, it essentially has an unlimited evaluation period (a la sublime text) so you can try it out for free for as long as you want, and pay if you want too (I have).

The linux port is in progress.

EDIT: just a sidenote, if you really want to force youself to go CLI only, you'll want to look into how git behaves differently depending on config. I recommend starting with this talk at NDC to get a good enough git config, then move onto Julia Evans blog as she's currently going on a public journey of untangling how the same commands can do different things in modern git.