Ionic Pro: First "git push ionic master" error


Following the setup tutorial, I’m trying to push my repo for the first time using git push ionic master but it keeps failing with the error:

error: update_ref failed for ref ‘refs/remotes/ionic/master’: cannot lock ref ‘refs/remotes/ionic/master’: unable to create directory for .git/refs/remotes/ionic/master

Do you have any idea on how to solve that?

Thank you!

Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with, sorry. Check these:

You can - and should - contact support at

Is this a local error or something output from the Ionic Pro server?

Hi, thank you for your answer.

Actually, it was just an issue of ownership. It changed the whole repo owner from root to ‘user’ and it worked fine.

1 Like