bitbucket

How does my git repository keep getting corrupted?

跟風遠走 提交于 2019-12-03 11:08:46
I am using ubuntu 14.10 (64bit), git version 2.1.0. This is a repository that has been around for several years, and has recently started having issues. Sometimes I'll change branches, edit a file, and type git status. It will show a bunch of files as "modified" that actually haven't changed at all. If I type the following: $ git commit -am "fixed sms message" I get errors like this: error: short read No such file or directory error: globalstatic/images/console/avatar_f.gif: failed to insert intodatabase error: unable to index file globalstatic/images/console/avatar_f.gif fatal: updating files

Bitbucket Pipelines - multiple branches with same steps

和自甴很熟 提交于 2019-12-03 11:00:53
Is it possible to combine multiple branches that have the same steps within bitbucket pipelines? ex: The teams I work on use one of two names for their review branches, either "rev" or "staging". Either way the same steps are used to publish to our review server. Right now the branches are called out separately. pipelines: branches: rev: steps: - echo 'step' staging: steps: - echo 'step' but could it be something like pipelines: branches: rev|staging: steps: - echo 'step' A comma-separated list inside braces appears to work: pipelines: branches: '{rev,staging}': - step: script: - echo 'step'

Gerrit as a review tool, not as the repository of record

烂漫一生 提交于 2019-12-03 10:32:32
I've spun up an instance of gerrit from the quick start guide. My company uses BitBucket with pull requests and occasionally crucible for code reviews. We use Jenkins with an extensive build/deploy pipeline tied to BitBucket. We'd like to integrate gerrit for code review because of its ability to stage commits and build/verify them before the review is accepted. Basically, I want gerrit's "submit" button to push upstream to BitBucket. (I'd rather not deal with trying to do this by replication; I want to maintain BitBucket as upstream/repository of record because of corporate inertia.) Does

How safe is it to host sensitive data on repository sites like github, bitbucket, etc.? [duplicate]

孤街醉人 提交于 2019-12-03 10:26:52
问题 This question already has answers here : How secure would github hosting be for private repositories? [closed] (4 answers) Closed 10 months ago . This is just a question out of curiosity. I am wondering how safe it is generally considered to host sensitive data on repository websites like Github, Bitbucket, etc.? Is it safe enough to get rid of all code on local machines and just store it all on there? How about safety in the sense of keeping company secrets? I notice these sites tout big

How to connect OpenShift with a private BitBucket Repository

≡放荡痞女 提交于 2019-12-03 10:24:08
I want to host a website on OpenShift but I want my code to synchronize automatically with a "free but private" service like Git, so I found BitBucket. I tried to connect it by my self by pasting this key from my OpenShift app: ssh://530910bd5973ca01ea00007d@XXXXXXXXXX.rhcloud.com/~/git/XXXXXXXXXX.git/ into: BitBucket -> Repository -> Import Repository -> Old Repository. But I get this error: Unsupported protocol. Please use 'http://', 'https://' , 'svn://' or 'git://. I believe I have the same issue as this guy: https://www.openshift.com/forums/openshift/connect-to-bitbucket-repository-from

How to trigger a jenkins pipeline from a bitbucket repository

痞子三分冷 提交于 2019-12-03 09:29:56
I have successfully setup a webhook trigger in bitbucket for a Jenkins freestyle project, for test purposes. Unfortunately my Jenkins project is using the Pipeline format, and I am unable to get Bitbucket to trigger that kind of project; the problem seems to be that there is no Jenkins project registered to pull from the repo that the Bitbucket webhook is coming from, and Jenkins replies with: Error: Jenkins response: No git jobs using repository: ssh://git@myhost:7999/xxx/testing-jenkins.git and branches: master No Git consumers using SCM API plugin for: ssh://git@myhost:7999/xxx/testing

Git error: inflate: data stream error (unknown compression method)

若如初见. 提交于 2019-12-03 09:25:33
I am getting Git error: inflate: data stream error (unknown compression method) fatal: failed to read object <hach>: Invalid argument error when I try do $ git status . How can I fix it? ozba Do a git fsck --full Did it report a corrupted file? If so delete the file, go back to step #1. Do del .git/index Do git reset Mohsen Jalalian I think it happened because maybe your computer or files were corrupted. First back up your .git folder, then use git fsck --full command to check your file system then delete corrupt files and check it again until your problem disappear 来源: https://stackoverflow

Create a BitBucket git commit hook?

*爱你&永不变心* 提交于 2019-12-03 09:14:57
问题 I just ported over a repo from GitHub to BitBucket. Although it does many of necessities, I'm finding it surprisingly difficult to find documentation for creating a git commit hook. Originally I had a ruby app on a CentOS server that was triggered by a GitHub hook. Does anyone know how to achieve the same in the BitBucket environment? Thanks! Edit: here's what the ruby app simply looks like if it helps: post '/' do `rm -rf repofolder` `git clone https://user@bitbucket.org/user/repo.git` `sh

Push a folder from Bitbucket repo to public server using Pipelines

左心房为你撑大大i 提交于 2019-12-03 08:58:48
I have pipelines enabled in my Bitbucket repository and I need to run Angular 2 build and deploy the dist folder (which gets created after the build command is executed) in my server after every build. I have following in my bitbucket-pipelines.yml file: image: node:4.6.0 pipelines: default: - step: script: # Modify the commands below to build your repository. - npm install - npm run build:prod I found this code snippet on the Internet: - apt-get update - apt-get -qq install git-ftp - git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://123.456.789.123/timount/angular_app I use a pem

Private bitbucket maven repo

匿名 (未验证) 提交于 2019-12-03 08:56:10
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm having trouble with a project using a private bitbucket maven repo, it was previously working but since upgrading to android studio RC gradle cannot find the repo whilst it is set to private. Unchecking the "This is a private repository" option on bitbucket resolves the issue but this isn't a viable solution. 回答1: I used to struggle against this problem a year ago. The solution was to use synergian plugin . It uses your native git client and its configuration so there is no need to provide your credentials in plain text but use