Open khabubu opened 4 years ago
@daschult,
I think this is more of a new Get Experience feature request. Do you know if there's an easy way to move your changes to a different branch using the new UI? This is certainly a frustration I've had when using Git in the past!
Hi Khabubu,
I'm just trying to understand your scenario a little bit better. You situation looks like this, right?
I think you can accomplish this pretty simply by just "git checkout -b
Thanks!
Hi Dan
You have partially understood my scenario. In my scenarioI have not yet commited to master branch but I have changed a file while on the master branch and I don't want to lose the changes. Now your alternative is valid if I had commited to the master brunch hence the you have suggested to use "git checkout -b", however I want to use the new UI to switch between the local master branch to another local branch withou losing those changes.
Hence I provided the current alternative I use which is using the command line and execute the following command "git switch dev".
@daschult,
The situation I would often get into was this:
I wish there was a streamlined way to do 4 ☝️
Reading up on the git switch
command that @khabubu mentioned (see here), I think this might be the command I'm looking for!
Maybe this is simply a case of the new Git experience using the new git switch
command instead of the legacy git checkout
command. I always found checkout's insistence on a clean working tree to be a burden (particularly when working with submodules).
In summary, I think it's a great idea to consider using git switch
either as the default or at least an option!
Is your feature request related to a problem? Please describe. I'm always frustrated when I make changes to master branch and what to switch those changes to a new branch or an existing branch.
Describe the solution you'd like I would like to be able to switch to a new or existing branch and move those changes to that brunch through a user interface where I can switch to branch with changes.
Describe alternatives you've considered The current alternative is to open the command prompt and enter the following command
Or if the branch already exists