bitbucket

Git track a remote branch but push to a different branch?

感情迁移 提交于 2019-12-24 03:32:09
问题 Lets assume I have a branch called 'my-local-changes', which is a local branch, that was created from a branch called 'some-remote-branch', which is a remote branch. Let's also assume there is a third branch called 'develop', which is the remote branch where code is pulled into from multiple branches ('some-remote-branch' is one of them, I also have a local branch called 'develop' that tracks the remote develop branch) My question is how can i set up 'my-local-changes' to track the 'develop'

Vagrant shell and ansible provisioning fail with bitbucket

左心房为你撑大大i 提交于 2019-12-24 03:24:06
问题 I can't force vagrant provisioning to clone private git repos from bitbucket. I have vagrant 1.6.3. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.ssh.private_key_path = "~/.vagrant.d/insecure_private_key" config.ssh.forward_agent = true config.vm.define "abox" do |abox| abox.vm.box = "ubuntu/trusty32" abox.vm.hostname = "abox" abox.ssh.forward_agent = true abox.vm.network "private_network", ip: "192.168.50.4" abox.vm.network "forwarded_port", guest: 22, host: 2233 abox.vm

Bitbucket pipelines issues with git commands

99封情书 提交于 2019-12-24 03:07:07
问题 I am new to bitbucket pipelines service and I have problems with deploying my app to heroku. My bitbucket-pipelines.yml file is here: image: php:5.6.31 clone: depth: fullpipelines: default: - step: script: - php -v - git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD Building app fails with "bash: git: command not found". Does this mean that I have to simply write git-installing script before pushing it to heroku? 回答1: Just had to add - apt-get update && apt-get

BitBucket and Merge Conflicts

懵懂的女人 提交于 2019-12-24 02:22:08
问题 I have a code source that has 3 branches to it: master Branch 1 Branch 2 I'm working on Branch 2 while another programmer is working on Branch 1 . I have recently pushed my changes to my branch after having pulled any changes locally. Then I merged my branch with the master. I'm now trying to merge his branch with the master but get a HUGE list of conflicts. Mostly things I added and synced to the master are conflicting with lines he added in the same files. How do I decide which changes to

Can I access my private bitbucket repository with ajax and jquery?

与世无争的帅哥 提交于 2019-12-24 02:09:59
问题 On my site, I'm currently generating a list of tags from one of my repositories hosted on bitbucket.org using jquery. But in order to do this, I had make the repository public. I would prefer to keep it private. Is it possible for to me to allow the site access to my respository in this way, while still keeping the repository private. The code looks like this (in this form, it will produce a list in the console of the all tags). $.ajax({ url:"https://api.bitbucket.org/1.0/repositories

Composer permission denied (publickey)

a 夏天 提交于 2019-12-24 01:56:14
问题 I Have a private repo on BitBucket, Im trying to install on localhost using composer install, here is my composer.json file: { "repositories": [ { "type": "git", "url": "git@bitbucket.org:username/repo.git" } ] } When I run composer install from the command line I get: [RuntimeException] Failed to execute git clone --mirror "git@bitbucket.org:username/repo.git" "C:/Users/...../" Cloning into bare repository 'C:/Users/.....'... Permission denied (publickey). fatal: Could not read from remote

How can clone the mercurial repo with all history

元气小坏坏 提交于 2019-12-24 00:53:29
问题 I have the server with mercurial . Now i have the home computer where i am pushing all my repo to bitbucket account. My Work serve r has all the revisions like 900 on them. Now i want to clone that repo with all those 900 revisions and then push them to bitbucket so that i can see all those 900 revisions in my bitbucket account. Is this possible 回答1: In short, yes. Mercurial is a distributed version control system, which means (amongst other things) that every clone contains by default the

Git checkout old commit, and further make new commits

巧了我就是萌 提交于 2019-12-23 23:53:24
问题 FYI: I am using bitbucket to push my git to (I know not very important). I was working on a project, wherein I made changes, and pushed to origin master, only to realise that master had some major bug, hence I checked out to a specific old commit, in the same master branch by using git checkout commit_name After that I started working further and kept adding and committing, now I am lost how to keep the following new commits, as well as not lose earlier (buggy) master. Basically how to get

Can I access Bitbucket Pipelines environment variables from my source code?

狂风中的少年 提交于 2019-12-23 17:37:01
问题 I have my sensitive data as environment variables in Bitbucket Pipelines, e.g. database credentials. Is there a way I can access these environment variables from my source code? I do not want to push these sensitive data to my repository. 回答1: Bitbucket Pipelines environment variables are just regular environment variables. You can access them however you normally would; this depends on the programming language you are using. For example, in Python you can use os.getenv(), which lets you

Get information about other branches from within a Jenkinsfile

做~自己de王妃 提交于 2019-12-23 17:11:24
问题 Jenkins Blue Ocean is running on the same local network as a linked Bitbucket Server instance. A multibranch project in Jenkins is able to create a branch for each branch of a linked Bitbucket repository on the local Bitbucket Server. But within the Jenkinsfile, I am not able to get information about the other branches. What specific syntax needs to be added to the simplified Jenkinsfile below in order for the resulting console log to: 1. Print a complete list of all the branches in the