bitbucket

Request OAuth token from BitBucket

浪尽此生 提交于 2019-12-04 05:11:02
I've been trying to integrate BitBucket to my application for the past 4 hours to no avail. While reading through BitBucket's RESTful API documentation , I noticed that you need to use OAuth — it's OK, I'm using J.R Conlin's OAuthSimple library, which if fine by me (I tried oauth-php but it was kinda complicated — I didn't need all of those options for such a small integration). For what I understand, the first step to authenticate with OAuth is to request a new token via POST. When providing the necessary parameters, you should get a response from BitBucket, like this: oauth_token

Migrate from old LFS repo to new LFS repo?

回眸只為那壹抹淺笑 提交于 2019-12-04 04:56:24
There is LFS git repository hosted at Bitbucket server. Now we need to create new LFS repo and move repository there with LFS storage. How to do this? For example for normal repo we can do: git remote add new NEW_REMOTE_REPO_URL git push —-all NEW_REPO_URL Will LFS storage be created with all history for new repo? git remote add new NEW_REMOTE_REPO_URL git push —-all NEW_REPO_URL Basically yes this will do what you want, but it would fail if you don't have all lfs data cached locally. To get it you should run before your commands: git lfs fetch --all PS: you could also run git lfs push --all

Limit Access of GitHub or Bitbucket Repository

回眸只為那壹抹淺笑 提交于 2019-12-04 04:25:04
Is there any way to limit the access of bitbucket or Github repository from a specific IP Address. Which means I want to access my organisation repositories only from my office. The another this is that is there any way to block with a time being? Any of the git providers supporting this feature? The SSH key is only useful for the git action without entering passwords and username? Any way to solve this issue? I think many of the IT Companies are using this service for securing their source code. Is it possible to achieve this without a git service? BitBucket does not appear to currently

Git SSH public key denied

与世无争的帅哥 提交于 2019-12-04 04:21:47
I'm using Bitbucket, and I've setup ssh on git as instructed here for Linux (Ubuntu 13.04) https://confluence.atlassian.com/pages/viewpage.action?pageId=270827678 When I try to clone one any project from my Bitbucket account though, I get a public key denied error omk@home-pc:/var/www/git$ sudo git clone git@bitbucket.org:MyAccount/MyProject.git Cloning into 'MyProject'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I have added the public key to my bitbucket account. When I try 'ssh

How to remove deleted files from git?

半城伤御伤魂 提交于 2019-12-04 03:43:58
问题 I have committed and pushed a too large file in bitbucket, and I've deleted it locally, committed and pushed again. But on the site bitbucket the size of the repository is still too large. 回答1: Sounds like you created a new commit where you deleted the file. That means the file still exists in the previous commit. What you need to do is rewriting history . Assuming the two newest commits are deleting and adding that file, you can do the following: git reset --hard HEAD~2 git push --force This

Bitbucket pull request builder plugin keeps triggering same commit build

亡梦爱人 提交于 2019-12-04 03:24:38
I need to integrate Bitbucket with Jenkins. So that whenever a PR is opened it will trigger a build in Jenkins. Then commit status of the last commit in the PR will be updated as failed or success and this commit wont trigger the build again. (This works beautiful with Github but seems to be a nightmare for me with Bitbucket) So far I did: Installed Bitbucket pull request builder plugin. Set everything up like its described in https://github.com/jenkinsci/bitbucket-pullrequest-builder-plugin#readme User has write permissions to the repository (we added shh pub key to organization and its in

Configuration issue with PHP contact form

爱⌒轻易说出口 提交于 2019-12-04 02:36:54
问题 I have seen that there are many similar to mine questions here on StackOverflow, but I think I was not able to find the correct solution to my question yet. The problem what I am having is connected with receiving emails functionality - basically a contact us section of the website, where user can fill in html based form and press send message and this message will be delivered to my email. I do my development using XAMPP and running the Apache server and Mercury on localhost. Even though

How do I tell (locally) mercurial that a server is non-publishing?

折月煮酒 提交于 2019-12-04 02:31:15
How can I tell mercurial that a remote server (on bitbucket for example) is non-publishing when I do not have access to the remote .hg/hgrc file? Background Recent versions of mercurial has a concept of phases that allow one to keep track of which changesets have been shared ( public ) and which ones have not ( draft ). Repository changing operations like rebase are allowed on draft changesets, but not public changesets as others might depend on the latter. Pushing changesets to a public server will change their phase to public by default, but if the server is private or dedicated to code

The authenticity of host 'bitbucket.org (131.103.20.168)' can't be established

六眼飞鱼酱① 提交于 2019-12-04 02:28:05
In Cloud9 I do: $ git push -u origin --all The authenticity of host 'bitbucket.org (131.103.20.168)' can't be established. RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40. Are you sure you want to continue connecting (yes/no)? I added the ssh-key from cloud9 to Bitbucket. Shouldn't that be enough to have Bitbucket authenticated by Cloud9? Esse No. When you'll first connecting to bitbucket, ssh client on your machine will store RSA fingerprint in file called known_hosts . Then before each connection server fingerprint will be validated with stored one (to avoid man-in-the

Apply Bitbucket pull request as a patch

可紊 提交于 2019-12-04 01:41:29
I've got a repo on Bitbucket that only I have write access to. Someone forked that repo, made changes and issued a pull request to my repo from the fork. How can I get that pull request as a git patch to apply temporarily to my repo for testing purposes? The forked repo is private so I can't pull it down, and I wouldn't want to do that anyway. On GitHub you can simply go to a pull request and add a .patch to the end of the url to download the patch. This doesn't work with Bitbucket. Lythom The Pull Request Patch is available through bitbucket API (despite there is no button to download it