cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Pull or Fetch Git doesn't work.

victorpale
Participant
0 Likes
3,032

Hello SAP's gurus

I try to synchronize my local project with my repository in GitHub.

When I try to perform Pull or Fetch, SAP Web IDE shows me the next error message: Cannot get committed changes while trying to read the field 'w1' of a null object loaded from local variable 'toFind':

What am I doing wrong?

Best regards.

View Entire Topic
rima-sirich
Product and Topic Expert
Product and Topic Expert

draymond It probably happens because you are using github.com which switched from master to main default branch. When you Initialize Local git repository, it is created with default branch master, while you are trying to fetch a git repository with default branch main. It fails simply because master branch doesn't exist in the remote repository. There are 2 ways to solve it:

1. in github.com rename main to master.

2. in Web IDE create main branch and delete master branch. if you choose this way, before creating main branch create commit with changed files

Regards,

Rima

victorpale
Participant

Rima Sirich, thank you for your comments.

You are correct (different brach's names) , when I try to do "Pull" the IDE shows me this message error:

It's try to get master branch, but doesn't. exists.

I change the name in GitHub, after do a "Pull". I can get the last commit.

Thank you so much.