bitbucket

Pulling my own private repository from Bitbucket via Composer

时光毁灭记忆、已成空白 提交于 2019-12-10 22:33:59
问题 I have a big library that is hosted on Bitbucket as a private repository. I use this library for a lot of projects of mine. I am having a trouble updating my library in each project where it's used whenever I do some changes, therefore I'd like to simply put it in the composer.json file of each project, then use composer update to pull the newest version. How do I put my private repository which is hosted on Bitbucket in a composer.json file without making it public? 回答1: First set up ssh for

Can I issue git rev-parse on remote repository without a local copy?

天大地大妈咪最大 提交于 2019-12-10 20:31:50
问题 My local git repository is inside encrypted volume. I would like to be able to run git pull --all only when the remote has new commits. However, I'm unable to use post-receive hook like here since I don't have the password to the encrypted volume. This means that even if the hook will be triggered I still don't know the password to mount the volume and to pull the new changes. So I'm looking for some other alternatives, one possible way I was thinking of was to ask the remote for the latest

Can I import my heroku git repo into bitbuket? and how?

允我心安 提交于 2019-12-10 19:08:24
问题 My laptop died and I need to code from another computer. I am working with Heroku and I want to get the latest version of code from Heroku to another machine. I understood that it is very recommended to get a proper remote repository using GitHub or BitBucket. I decided to try BitBucket. While creating my account, it asks for the old URL of my git repo. Since my machine is dead, I was hoping to fill in the heroku URL but that didn't work. Any ideas how to proceed? The idea is that I could

Azure Pipelines CI not triggering when pushing tags from Bitbucket

微笑、不失礼 提交于 2019-12-10 18:17:14
问题 I'm trying to do a proof of concept to redesign my CI/CD pipelines in Azure Pipelines (formerly known as VSTS). My codebase is in BitBucket. I need a continuous integration build to be triggered when I push git tags to the remote repo. The proof of concept works really well when I use Azure Repos (VSTS), it detects a change in the "branch" "refs/tags/current" and triggers the build. But once I switch to BitBucket, it just doesn't work, no build is triggered. So my question is: How can I

AWS deployment “Unable to remove top level folder”

瘦欲@ 提交于 2019-12-10 18:08:32
问题 I have installed the Bitbucket addon to deploy with AWS CodeDeploy but for an unknown reason, I get this error "Unable to remove top level folder" when I try to deploy from the bitbucket view. This is my appspec.yml version: 0.0 os: linux files: - source: / destination: /var/www/citytwig hooks: AfterInstall: - location: scripts/configure.sh timeout: 300 runas: root I have already deployed other bitbucket repositories successfully, I'm wondering why this one doesn't work. 回答1: After a long

how to add remote repository using sourcetree

梦想的初衷 提交于 2019-12-10 16:38:33
问题 I'm using a Mac and I'm new to bitbucket and sourcetree. I want to push my local repository to a remote repository. So in sourcetree, I pressed "New", "clone from Url" and I pasted the url right from our remote repository. When I press enter, it says the url isn't valid. I kinda rushed through the installation, so maybe that could be it. 回答1: I'm assuming your local folder is initialized with git . There are two ways you can achieve this: Via Sourcetree app: In Sourcetree, check the left pane

Xcode 5: The repository could not be reached

喜你入骨 提交于 2019-12-10 16:02:42
问题 I have this issue with Xcode 5 where I'm trying to commit a file to a remote git repository (BitBucket) and getting a pop up window with the following error: "The repository "project_name" could not be reached. Please verify that the repository is online and reachable and try again." I've been working with this setup for awhile now (since Xcode 4) and didn't have any problems with it. Under Xcode->Preferences->Accounts->Repositories I saw the correct repository, but duplicated. I deleted and

Mercurial Maven Release plugin problems

﹥>﹥吖頭↗ 提交于 2019-12-10 15:11:16
问题 I love using Maven and distributed SCMs like Mercurial (BitBucket). However as I bring my project to scale and my Hg repository grows, I am finding the Maven Release plugin more and more cumbersome to work with. The primary problem is that when a mvn release:prepare is called Maven doesn't take advantage of the distributed nature of Hg and performs a full clone of the entire repository to put into a temporary directory. The issue is very well documented by Fabrizio Giudici back in 2009 http:/

How to use Bitbucket as a repository in IntelliJ

狂风中的少年 提交于 2019-12-10 13:53:56
问题 I have tried to add Bitbucket as a repository in IntelliJ (here). However, I came across errors pushing code. I figured out that Bitbucket only allows reading when using access keys. So, I found a plugin that allows IntelliJ to communicate with Bitbucket. But, this plugin has been discontinued. Is there any other way to use Bitbucket with IntelliJ? 回答1: Bitbucket is just Git. IntelliJ supports Git. You are in the wrong section of Bitbucket. You don't want an "Access key" you want to add an

Can “if” statements be used in bitbucket pipelines?

痞子三分冷 提交于 2019-12-10 13:04:27
问题 Im trying to run the following step, but it does not execute the "if" steps (lines 5 and 6) (I'm pretty sure they should as the directory tested for does not exist, i tried in multiple formats of bash if, but all of them fails. Is there a way to test for a condition than the one I'm using? - step: name: Google Cloud SDK Installation caches: - pip - cloudsdk script: - export ENV=dev - source scripts/setenv.sh - export CLOUDSDK_CORE_DISABLE_PROMPTS=1 - SDK_FILENAME=google-cloud-sdk-$SDK_VERSION