When setting up to ionicPro and do the steps to link bitbucket repository to my ionic repository, I received this messge:
git push ionic master
Fatal error: ‘ionic’ does not appear to be a git repository
When setting up to ionicPro and do the steps to link bitbucket repository to my ionic repository, I received this messge:
git push ionic master
Fatal error: ‘ionic’ does not appear to be a git repository
What steps did you do before execting that command?
In general: Ionic Pro receives support via this form: http://ionicframework.com/support#support
I have the same error message, any help would be appreciated.
Steps:
fatal: ‘ionic’ does not appear to be a git repository
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.
This is from an existing app, so it was not created with the new ionic start.
What does git remote -v
output for you?
If I understood it correctly, ionic link --pro-id
should have added an ionic
remote.
Standard Ionic Pro disclaimer: You should also contact support at http://ionicframework.com/support#support to get an official reply as we have no idea how stuff should work or works internally.
Thanks for the tip Sujan12, git remote -v
only output my github.com repositeries, no ionic related urls found.
Something is probably wrong with my setup, the strange part is during the process ionic link --pro-id 0ed...
successfully created a ionic ssh key/pair.
I filed a ticket in the meantime, I’ll let you know if I get to the bottom of this.
here is the solution
edit ionic.config.json
remove the app id “app_id”: “xxxxxx” (xxxxx here )
now run “ionic link” and your are done , this will add ionic origin .
Thanks it works fine
That´s my commands
C:\Users\paulo\Documents\Git\Bitbucket\deliveryapp2 (master)
λ ionic link
√ Looking up your apps - done!
? Which app would you like to link Create a new app
? Please enter a name for your new app: deliverapp2
> ionic config set app_id "f3a64b3c" --json
[OK] app_id set to "f3a64b3c" in .\ionic.config.json!
> ionic git remote
> git remote set-url ionic git@git.ionicjs.com:ozory/deliverapp2.git
[OK] Updated remote ionic.
[OK] Project linked with app f3a64b3c!
C:\Users\paulo\Documents\Git\Bitbucket\deliveryapp2 (master)
λ git remote -v
ionic git@git.ionicjs.com:ozory/deliverapp2.git (fetch)
ionic git@git.ionicjs.com:ozory/deliverapp2.git (push)
origin https://Ozory@bitbucket.org/Ozory/deliveryapp2.git (fetch)
origin https://Ozory@bitbucket.org/Ozory/deliveryapp2.git (push)
C:\Users\paulo\Documents\Git\Bitbucket\deliveryapp2 (master)
λ git push ionic master
**Permission denied (publickey).**
**fatal: Could not read from remote repository.**
**Please make sure you have the correct access rights**
**and the repository exists.**
Have you tried
ionic ssh setup
to configure your public key? This looks to me like the link was set up but the ssh key was not set up properly.
Yes, I confirm it’s the same error I had. Basically on windows 7, often. There is a conflict between ssh root directory and previous key/pairs. And when you try to automatically generate them for ionic it works more or less, with errors.
Looks like it’s an issues caused by the SSH key. How about trying to re-generate and reset a SSH key in the dashboard?
Dashboard: https://dashboard.ionicjs.com/settings/ssh-keys
It’s in the account settings --> SSH Keys
.
Here’s the documentation.
It doesn’t worked for me. I deleted app_id
from ionic.config.json
and typed ionic link
. I’ve got:
✔ Looking up your apps - done!
? Which app would you like to link MyAppName (MyAppId)
> ionic config set app_id "MyAppId" --json
[OK] app_id set to "MyAppId" in ./ionic.config.json!
[OK] Project linked with app MyAppId!
And that was it. After that, I tried git push ionic master
and i got:
fatal: 'ionic' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Any ideias?
It looks like it’s because of different key / pairs on the same computer/device. The issue is not from Ionic, but from our setup if we had previous ssh certificates running before.
Hope it helps,
François
Unfortunately, not.
I get what u r saying, but it should exists a solution to situations like that. How many people will add Ionic Pro to its apps much later after creating it’s projects? Got it?
What about just running
git push git@git.ionicjs.com:your_ionic_pro_id/appname.git
It might be ionic.js, not at computer right now and don’t recall
@matheuscas I get it sure, and my app is not yet into Ionic Pro because of that issue. But it doesn’t mean, Ionic can do all the hard stuff. Personnally I got one answer from support, and the truth is the bad is on my side, not the Ionic Pro technology by itself.
Regards,
I do agree. Would u mind to share their response? Maybe it could help us both.
I gess so but how can I delete this ssh Keys to star again?
PS sorry about my english, Im brazilian…
Abraços
This was the answer.
Sorry for the delay in getting back to you on this. If you're still having trouble, it seems most likely that there was some issue with the ionic link command. You should be able to force it by manually adding the ionic remote with this command:
git remote add ionicgit@git.ionicjs.com:abbeyseto/jarajobs.git
Let us know if this helps – thanks!
After some personal digging, it didn’t solve any issue.
Regards,
François
@ozory doing ionic link --pro
from inside your project should delete your previous key
Or ionic init
From there you could try to link your ionic app with ionic pro again
Hope it helps,
François