bitbucket

How to push changes after rename branch on Bitbucket?

自古美人都是妖i 提交于 2021-02-19 09:23:51
问题 The problem is that I started working on branch called DDH-112 and I pushed it to the repository but then I changed name of this branch by using git branch -m <newname> because the previous one was wrong. Now I can't push changes to the new branch. It says: fatal: The upstream branch of your current branch does not match the name of your current branch. To push to the upstream branch on the remote, use git push origin HEAD:DDH-122 To push to the branch of the same name on the remote, use git

how to fetch the number of commits at Bitbucket using its API

允我心安 提交于 2021-02-18 19:23:10
问题 Is there a way to fetch the number of committed codes through the API for Bitbucket and use it in a program? I dont want to show any message or anything just the number of the committed code by all the programmers in a section 回答1: I assume by 'comitted codes' you mean 'changesets'. From the bitbucket REST api documentation: Gets a list of change sets associated with a repository. By default, this call returns the 15 most recent changesets. It also returns the count which is the total number

remote: Forbidden fatal: unable to access

♀尐吖头ヾ 提交于 2021-02-18 17:57:05
问题 I have access to repo, I clone it by https, then I made my changes and I commit those change and create new_branch and try to push I got this: git push origin new_branch remote: Forbidden fatal: unable to access 'https://username@bitbucket.org/main-account/repo.git/': The requested URL returned error: 403 I already setup my SSH key, git global config and already logged ssh -T username@bitbucket.org logged in as username You can use git or hg to connect to Bitbucket. Shell access is disabled

Bitbucket webhook trigger after pipeline completes successfully

随声附和 提交于 2021-02-18 12:33:30
问题 I'd like to trigger a webhook after a pipeline completes successfully, I looked in the trigger list and didn't find any, is there a workaround to trigger webhook manually via pipeliens? 回答1: You can use the Build status updated trigger to trigger a webhook based on a pipelines build. However, this will also be triggered by the INPROGRESS or FAILED state, and there is no possibility to specify a pipeline. If you only want to trigger a webhook from when a specific pipeline completes succesfully

Push changes in git submodule to main module but not to submodule

為{幸葍}努か 提交于 2021-02-17 05:22:44
问题 I have a git project A that uses a submodule B from Github. I cannot push to the Github project B because it is not mine. I want to do a small change in B that is not pushed to the remote B (because I can't push) but it should be pushed to A (so when someone uses A, he should be able to see my changes). I tried to commit in B, then commit in A and it seems like the changes are committed correctly. When I push A to bitbucket it shows me the submodule with a new commit. I tried to clone A

Clone git repository via composer

梦想的初衷 提交于 2021-02-11 18:16:08
问题 guys! I simply want to clone repository via composer. But unfortunately - i can't. My composer.json looks like: { "repositories": [ { "type": "vcs", "url": "https://bitbucket.org/yuriikrevnyi/bitrix-teil-framework" } ], "require": { "mockery/mockery": "dev-master@dev", "phpunit/phpunit": "3.7.*" } } But its not going to work. So, couldnt you help me a little bit? And there is one more question. How to 'clone' private repo with composer? Lets say, we have same repo - https://bitbucket.org

Bitbucket Pipelines - No Application Version named found

余生颓废 提交于 2021-02-11 14:53:29
问题 I'm trying to deploy django project to elasticbeanstalk using bitbucket pipelines. Here's my config image: python:3.7.2 pipelines: branches: master: - step: script: - pipe: atlassian/aws-elasticbeanstalk-deploy:0.2.5 variables: AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION APPLICATION_NAME: $APPLICATION_NAME COMMAND: $COMMAND ENVIRONMENT_NAME: $ENVIRONMENT_NAME VERSION_LABEL: ${ENVIRONMENT_NAME}_${BITBUCKET_COMMIT:0

Bitbucked giving me 403 when pushing despite being Admin

故事扮演 提交于 2021-02-11 14:51:51
问题 I own a private repo on bitbucket that I haven't used in a long while. Lately tried to push a new branch to it using git push --set-upstream origin hotfix-routing and got this info prompt in the terminal: remote: Forbidden fatal: unable to access 'https://{{login}}@bitbucket.org/{{reponame}}.git/': The requested URL returned error: 403 I use bitbucket not so ofter and am not sure how to approach this issue. Any help would be great 回答1: I experienced the same thing but the circumstances may

Bitbucked giving me 403 when pushing despite being Admin

梦想的初衷 提交于 2021-02-11 14:50:10
问题 I own a private repo on bitbucket that I haven't used in a long while. Lately tried to push a new branch to it using git push --set-upstream origin hotfix-routing and got this info prompt in the terminal: remote: Forbidden fatal: unable to access 'https://{{login}}@bitbucket.org/{{reponame}}.git/': The requested URL returned error: 403 I use bitbucket not so ofter and am not sure how to approach this issue. Any help would be great 回答1: I experienced the same thing but the circumstances may

remote: Forbidden The requested URL returned error: 403

社会主义新天地 提交于 2021-02-11 12:38:00
问题 I have a repository called "Abc" in Bitbucket with three different Dev branches like Dev_1, Dev_2, Dev_3(All three developer are part of the team). When Dev_1 or Dev_2 or Dev_3 want to push their code to their respective branch using git push origin Dev_1 command. I am getting an error: remote: Forbidden fatal: unable to access 'https://abdulsayeed27@bitbucket.org/dfe_team/dfe_repo.git/': The requested URL returned error: 403 1.I tried config and set-url like command. But not able to fix this