bitbucket

Bitbucket git credentials if signed up with Google

淺唱寂寞╮ 提交于 2020-05-24 08:02:13
问题 I have an account on bitbucket.org that I created by signing up with my Google account. Now everytime I log in I just click "Log in with Google" and that's fine. How can I access my repos from git command line? It requests me username and password. I have a username, but no password. How do I log in then? 回答1: You should do a one-time setup of creating an " App password " in Bitbucket web UI with permissions to at least read your repositories and then use it in the command line. How-to: Login

Bitbucket git credentials if signed up with Google

可紊 提交于 2020-05-24 07:59:07
问题 I have an account on bitbucket.org that I created by signing up with my Google account. Now everytime I log in I just click "Log in with Google" and that's fine. How can I access my repos from git command line? It requests me username and password. I have a username, but no password. How do I log in then? 回答1: You should do a one-time setup of creating an " App password " in Bitbucket web UI with permissions to at least read your repositories and then use it in the command line. How-to: Login

How to rebase pushed branches without ruining tree?

一笑奈何 提交于 2020-05-17 06:22:45
问题 I'm the only developer working in a repository, so there's no issue with ruining peoples' flow. However when I rebase locally and then try and push it to Bitbucket, it comes back telling me I need to pull the latest changes. I do that, and the rebase has completely ruined my clean tree. Is there a way to push a rebase to the server without then having an additional "Merge branch" commit as part of it? Thanks! 回答1: Rebase is fundamentally a "copy some commits, then discard the old commits in

How to rebase pushed branches without ruining tree?

久未见 提交于 2020-05-17 06:22:10
问题 I'm the only developer working in a repository, so there's no issue with ruining peoples' flow. However when I rebase locally and then try and push it to Bitbucket, it comes back telling me I need to pull the latest changes. I do that, and the rebase has completely ruined my clean tree. Is there a way to push a rebase to the server without then having an additional "Merge branch" commit as part of it? Thanks! 回答1: Rebase is fundamentally a "copy some commits, then discard the old commits in

How do I count the number of pull requests I've submitted to a repository on bitbucket

烂漫一生 提交于 2020-05-15 19:43:12
问题 Bitbucket doesn't expose this information in the web interface, so I'll likely need to find it using the API. 回答1: Some examples: https://api.bitbucket.org/2.0/repositories/tutorials/tutorials.bitbucket.org/pullrequests/?state=OPEN https://api.bitbucket.org/2.0/repositories/tutorials/tutorials.bitbucket.org/pullrequests/?state=MERGED and search for the size entry in the response (eg: "size": 7) 回答2: The following python code uses the requests library to interact with the bitbucket API. It

git pull or fetch behaves differently every time i run these commands on git bash for windows

蓝咒 提交于 2020-05-13 18:07:03
问题 git pull and git fetch behaves in 4 different ways listed below 1.) Returns nothing and display the command prompt. I checked the exit code it comes out to be 1. 2.) Fails with error "remote end hung up unexpectedly, early EOF's unpack objects failed. 3.) Fails with error "remote end hung up unexpectedly bad pack header. 4.) Execute successfully some time. For point number 2 and 3 i tried various solutions (editing the config file) given on internet but still the issue persists. can someone

git pull or fetch behaves differently every time i run these commands on git bash for windows

非 Y 不嫁゛ 提交于 2020-05-13 18:06:01
问题 git pull and git fetch behaves in 4 different ways listed below 1.) Returns nothing and display the command prompt. I checked the exit code it comes out to be 1. 2.) Fails with error "remote end hung up unexpectedly, early EOF's unpack objects failed. 3.) Fails with error "remote end hung up unexpectedly bad pack header. 4.) Execute successfully some time. For point number 2 and 3 i tried various solutions (editing the config file) given on internet but still the issue persists. can someone

git pull or fetch behaves differently every time i run these commands on git bash for windows

坚强是说给别人听的谎言 提交于 2020-05-13 18:05:42
问题 git pull and git fetch behaves in 4 different ways listed below 1.) Returns nothing and display the command prompt. I checked the exit code it comes out to be 1. 2.) Fails with error "remote end hung up unexpectedly, early EOF's unpack objects failed. 3.) Fails with error "remote end hung up unexpectedly bad pack header. 4.) Execute successfully some time. For point number 2 and 3 i tried various solutions (editing the config file) given on internet but still the issue persists. can someone

Are the remote and centralized repository the same thing in git?

半世苍凉 提交于 2020-05-09 06:14:10
问题 They seem to be synonyms, but I can't tell quite yet. Basing this off the Subversion vs. DVCS debate here. 回答1: Maybe. Remote repositories are a fundamental feature of git (though you can use git without a remote). "Central" repositories are a matter of project organization. A remote git repository is any repository other than your local one; you can push, pull, and fetch to it from your local repo. If you have a number of developers working on a project, each one will have his or her own

I'm trying to integrate Bitbucket into AWS Code Pipeline? What is the best approach?

ⅰ亾dé卋堺 提交于 2020-05-07 10:52:51
问题 I want to integrate my code from Bitbucket into AWS Code Pipeline. I unable to find proper examples on the same. My source code is in .Net. Can someone please guide me. Thanks. 回答1: You can integrate Bitbucket with AWS CodePipeline by using webhooks that call to an AWS API Gateway, which invokes a Lambda function (which calls into CodePipeline). There is an AWS blog that walks you thru this: Integrating Git with AWS CodePipeline 回答2: BitBucket has a service called PipeLines which can deploy