Push impossible on my own bitbucket

Hi,

I try to push on my own bitbucket and there is an error m

repository access denied. access via a deployment key is read-only.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

When I push, it’s ok :

➜  loco git:(master) git push
Counting objects: 2, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 258 bytes | 258.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Received:
remote:  	Branch:   master
remote:  	Commit Sha:   58258590...
remote:  	Commit Msg:   Add test file
remote:  Checking for previous builds...
remote:  New commit or branch detected triggering new build view build log here:
remote:  https://dashboard.ionicjs.com/app/f2a...
To git.ionicjs.com:locoapp/loco.git
   e528045..5825859  master -> master

But when I try to push on bitbucket, with the command : ➜ loco git:(master) git push origin master , I obtain previous error.

When I write : git remote -v

|ionic|git@git.ionicjs.com:locoapp/loco.git (fetch)|
|---|---|
|ionic|git@git.ionicjs.com:locoapp/loco.git (push)|
|origin|git@bitbucket.org:teamlocoapp/locoapp.git (fetch)|
|origin|git@bitbucket.org:teamlocoapp/locoapp.git (push)|

If anyone has an idea ?

Sorry but I Don’t use bitbucket. Im a Github Guy.

But I think you should answer this question in Stack overflow, thats more of a overall general programming forum and this forum is based around Ionic.

1 Like

Did you activate ssl?

I wonder why you have so many origins in your remote list.
I have only two that look like this:

origin git@gitlab.com:mygroupname/myprojectname (fetch)
origin git@gitlab.com:mygroupname/myprojectname (push)

When you write git push you try to push to your complete list and you do not have the rights to write in ionics repositories. Either remove them or try git push -u origin

I think you can remove them by using:

git remote remove ionic
git remote remove ---

Hello,

I hqve tow remote because I’d like to push on ionic and my bitbucket.
If I clone only ionic repo or bitbucket repo it works fine, but if I have tow remote in my config, only bitbucket works

Did you remove the --- repository? Maybe that stops git push from working

Here is my git config :

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
        precomposeunicode = true
[remote "ionic"]
        url = git@git.ionicjs.com:locoapp/loco.git
        fetch = +refs/heads/*:refs/remotes/ionic/*
[branch "master"]
        remote = ionic
        merge = refs/heads/master
[remote "origin"]
        url = git@bitbucket.org:teamlocoapp/locoapp.git
        fetch = +refs/heads/*:refs/remotes/origin/*

I’m almost sure I can have tow remote.

git push works and push on ionic, but I’d like to push on bitbucket too and it doesn’t work

So git push only pushes to your ionic origin and not to your bitbucket origin, is that right? And it does not throw any error or any warning?

Yes, output is :

➜  loco git:(master) git push
Counting objects: 2, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 226 bytes | 226.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Received:
remote:  	Branch:   master
remote:  	Commit Sha:   9261913...
remote:  	Commit Msg:   test
remote:  Checking for previous builds...
remote:  New commit or branch detected triggering new build view build log here:
remote:  https://dashboard.ionicjs.com/app/f2...
To git.ionicjs.com:locoapp/loco.git
   5825859..9261913  master -> master
➜  loco git:(master)

is this something you are looking for?

here is another example: