I have recently use Android studio and I was just try to connect bitbucket with it.
I don't want manually bitbucket by terminal thas why I googling it. find some links link .
I have follow all the steps install plugin>shareproject>login>private>share project
and than error. I checked my bitbucket but no repositary created.
Can't publish part of repository
Invalid VCS root mapping The directory ExpandableLayout-master\TestProject is registered as a Git root, but no Git repositories
I don't know is thare error of plugins of bit bucket or my android studio
You can try below steps to clone a bitbucket repo: VCS -> Git -> clone -> paste bitbucket URL repo -> clone. It can clone successfully. Save this answer.
I have the same problem with android studio. this is my suggested solution:
go to project root folder then open a terminal in this folder:
then go to bitbucket and create new repository then choose "I have an existing project" ...
Now you can use plugin to push/update
After to much research... finally i got answer Actually it is bug of bit-bucket plugin. bit-bucket bug
Here is solution given by AKAMUZA in above link thanks bro.
(1)Go to project folder and delete .git folder
(2) IDEA pops up an error message about project not being under version control and an option to configure it. Press Configure and just delete the path to your project in VCS section.
(3)After this Import into version control -> Share project works like a charm.
I Found many developer having issue after use plugin directly from Android studio and if It not work you can download below plugin
This thread mentions (assuming that File > Settings > Version Control
is set to "git"):
You could instead have navigated into the directory via a terminal or shell and typed '
git init
'. That would have converted that directory into a git repository.
So check if ExpandableLayout-master\TestProject
has or has not yet a .git
subfolder in it.
If not, it means you have declared that path as a git repo, but locally, on your disk, that folder is not yet a git repo. If so, you can initialize it, add a remote pointing to an empty bitbucket repo and push.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With