Issue with publishing to remote repo using Git manager

Hi Everyone,

I am having a small issue since I am trying to use a remote connection on Git manager for the first time, and I don’t have any experience with using Github.

I have my project stored locally and I was using Git manager to make local commits. Now I have added a remote repository that is on Github, connected it to Wappler with a Personal Access Token, and when I am trying to push all the code to the remote repo on Github, I get an error that says:
“cannot push non-fastforwadable reference”

I don’t understand what that error refers to, but I think I am getting it because after creating the remote repo on Github I added a readme.md file and then I deleted it, so I made 2 commits there.

Currently my Git manager looks like this:
image

Can someone guide me with how to get this issue fixed, so that I can push all the project’s code to the remote repo?

Regards,

Try this:

Right click on branch and ‘merge’ with master.

I tried but I don’t get any option to ‘merge’ with master, because I didn’t do any branch actually, I am just trying to push everything I have locally to a remote for the first time

I got it fixed now, the problem was that in order to upload files to a new remote repo, the repo has to be completely empty otherwise it will not work, so I deleted the previous one which I had, and created a new one on Github and then tried pushing everything there and it worked.

1 Like