Hi,
I’ve used gitlab as an alterantive host to one of my projects, but now, when trying to upload to Defold servers I can’t. I’ve deleted .git/ folder and remains, then tried to create a new repo in the Editor but always get:
Creating remote repository…
Creating local repository…
Pushing local changes to remote…
Failed to push local changes.
Remote is set correctly, project is indeed in the Dashboard.
Where else should I look for a mistake then?
I know, the workaround could be to create a new project and move there all the files locally, then push changes, but is there a way to ommit it? What problem Defold has with push?
Create a new project, and then, using Git from the command line:
cd <path_to_new_project>
git remote -v # This should show you the URL to Defold's hosting for that repo as the origin remote
cd <your_own_project>
git remote set-url origin <the_url_you_obtained_previously>
git push -f origin master
After that you can delete the new project’s directory and work in your old one. And you get to keep your commit history.
Oo, it seems I have some bigger troubles - I can’t push even a new empty project. I’ve tried to logout and login again, but it hasn’t helped Do you have any idea on how can I check my account user.name and password, that git built in editor uses?
You need to generate an access token. You find that, and the user id, in the user settings (not project settings). Click avatar in the top right corner of the dashboard.
Except the problem with the upstream there were also missing user data in git, logging in and out didn’t helped, so I’ve added them manually to the project directory, locally. Then compared if there is anything different from the clear, new project git config file, and of course except url it was ok. I was trying to:
but actually, there is no “Access token” in the settings, there is “Tracking ID” - is it the same?