cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot checkout local branch

0 Kudos

I had been working in a local git branch in Web IDE, and had pushed the changes to a remote branch. I then opened the git pane and checked out the master branch to view some code. I now want to go back to my working branch. I open the git pane, select the working branch in the drop down, and I get the following error:

"Cannot checkout local branch Phase1Requirements
Request failed: error URI: /di/async-ext/workspacew97rt7m57nwjpvgz/90d1053e-3d0c-42b5-88c0-37ae62c49d08 "

How can I resolve this so that I can work on my working local branch? Can you please advise?

Also, In trying to troubleshoot this, I have managed to create two other local branches, which I do not want. How do you delete local branches in Web IDE?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Somehow, this seems to be resolved. I merged my local master into one of the unwanted local branches that I had created. Then, strangely, I was able to check out all of the local branches. (Huh?)

I have deleted the unwanted branches.

Seems to be some kind of glitch in SAP WebIDE.

Answers (3)

Answers (3)

GregMalewski
Contributor

I had the same issue on SAP Web IDE Full-Stack Version: 200130 when I have deleted .che before initializing local repo. With .che present it works ok.

I had the same issue and this worked for me. Adding the .che

0 Kudos

Hi Liat,

No, the only message in the console screen is:

"<timestamp> (git) Cannot checkout local branch <branch name>"

Thanks for the tip on deleting local repositories. Unfortunately I cannot hit the delete button until/unless I can check them out. 😞

liat_b
Advisor
Advisor
0 Kudos

Hi Andy,

Do you see any errors in the console that can indicate why you can't checkout the branch?

Regarding deleting local branches - in the git pane you have a delete branch button, that opens a window in which you can choose the branches to delete.

Liat