bitbucket

Adding SSH Key to authorized_keys: permission denied(publickey)

与世无争的帅哥 提交于 2019-12-04 23:07:49
问题 I have an id_rsa and id_rsa.pub on my computer also tied into my BitBucket account. As I understand I can use this public key anywhere I please (as long as my private matches). The Problem : I cannot figure out how to get any server to accept the public key, do you see what I've done wrong? $ cat id_rsa.pub >> authorized_keys $ service ssh restart (I suppose this isn't needed) $ git pull origin master $ Permission denied(publickey) What am I doing wrong? I've been stuck for days. 回答1: You

Convert Bitbucket Mercurial repository to Git. Maintain branches and history. Online solution

自作多情 提交于 2019-12-04 21:48:27
问题 How do I convert a Bitbucket Mercurial repository (Hg repository) to a Git repository? I want to keep branches and commit history. 回答1: The only way I found to convert a Mercurial repo to Git, while keeping all the branches, was to use GitHub's importer. This was also the easiest since it's all done online. Nothing local to install, no command line stuff. Main idea Use Github's importer to convert Bitbucket Mercurial repo to GitHub Git repo. Then import that back into Bitbucket. The steps In

git hook to create staging branch

我与影子孤独终老i 提交于 2019-12-04 21:23:05
I am hosting my code on Bitbucket. The webhooks are not adequate to solve my issue, so I am hoping git hooks will work. Since I don't imagine they will work server-side, the git hook should be propagated to each checkout on each developers machine. (I know this might be an issue since its normally a local file, but I can hopefully solve it using information from here ) I want to create a git hook that will push changes to staging branches. Meaning, if I am a user named bob and I want to push to production/master , instead of it pushing to the production/master branch it will push to a staging

Git flow with Bitbucket pull requests

◇◆丶佛笑我妖孽 提交于 2019-12-04 21:22:27
I used git flow feature finish to finish a feature branch. I use the AVH fork of git-flow, which deletes the remote feature branch - but the Bitbucket pull request is still open. How should I close the Bitbucket pull request? And what is a correct way to accept a PR in future while following the git flow workflow? While the AVH version of git-flow deletes the remote feature branch when you do git flow feature finish , strangely, it doesn't push anything. It leaves you on the master branch, so once you've done git push or git push origin master:master , the BitBucket pull request will

Mylyn connectors for GitHub and BitBucket

試著忘記壹切 提交于 2019-12-04 21:14:19
问题 Does anyone know if there are any stable connectors to integrate mylyn with Bitbucket and Github? For github.com I think I found one, but for bitbucket there is no information on the Eclipse Mylyn project page. 回答1: There's a Mylyn connector for Bitbucket at https://bitbucket.org/pplupo/bitbucket-mylyn-connector. Note: the Eclipse Update Site there (http://www.mylynbitbucketconnector.xpg.com.br/update) only worked for me when I unchecked "Group items by category" 回答2: Eclipse Juno 4.2.2 comes

Using an ssh key with composer for a private vcs

拜拜、爱过 提交于 2019-12-04 19:37:09
I'm trying to pull a private package hosted on Bitbucket into my project but I can't seem to get composer to work correctly with my SSH key. I'm currently trying: { "type": "composer", "url": "https://packagist.org" }, { "type": "vcs", "url": "git@bitbucket.org:{projectName}/{repo}.git", "ssh2": { "username": "git", "privkey_file": "/home/vagrant/.ssh/bitbucket_id_rsa", "pubkey_file": "/home/vagrant/.ssh/bitbucket_id_rsa.pub" } }, When I try to run composer update I get Permission denied (publickey) but when I run ssh -T git@bitbucket.org -i /home/vagrant/.ssh/bitbucket_id_rsa I can connect

How to properly configure ssh keys to multiple remote accounts involving github and bitbucket?

孤街浪徒 提交于 2019-12-04 19:23:52
I created and configured three ssh keys both locally and remotely as follows: SSH keys - Emails $> cat ~/.ssh/id_rsa.pub (E-mail Bitbucket) ssh-rsa AAAAB3.../kJVKej/5 ricardoramos.usp@gmail.com $> cat ~/.ssh/id_rsa_git_hub.pub (E-mail Github1 is the same account Bitbucket) ssh-rsa AAAAB3...Iq9FkLN6L ricardoramos.usp@gmail.com $> cat ~/.ssh/id_rsa_back_track.pub (E-mail Github2) ssh-rsa AAAAB3N...MSdYFaZ0d ricardo.comp.ufla@gmail.com List SSH keys (Two different ssh keys with the same email) $> ssh-add -l 2048 6b:0b:dd...e6:b7 ricardoramos.usp@gmail.com (RSA) 2048 fc:20:37...1a:ec ricardo.comp

How to delete all commits in Bitbucket [duplicate]

烈酒焚心 提交于 2019-12-04 19:08:21
This question already has an answer here: Delete or remove all history, commits, and branches from a remote Git repo? 2 answers I want to revert all my changes in a repository, so is it possible to delete all commits in Bitbucket? If so, how? I have no idea why you'd want to do something like this, but.. One way to do it would be to reset to your initial commit: git reset --hard (find the sha1 of your first commit) and then force push: git push -f You're pretty much rewriting the entire history of whatever branch you're pushing to. Why not just create a new repository? git reset --hard <commit

Atlassian Bamboo: Handling git-Flow hotfix-branch

痞子三分冷 提交于 2019-12-04 18:23:00
At our company we use Jira, Bitbucket and Bamboo. Our repository is organized in the git-flow schema: develop-branch = Application code for testing (aka Release Candidate) master-branch = Application code running live feature-branches = new components based on actual dev-branch merged via pull-request hotfix-branches = new hotfixes based on master-branch merged into develop and master via pull-request Our versioning system works like the following: Now I'm trying to integrate our structure into Bamboo. I created a plan triggered by changes into the dev-branch containing two stages: 1: Develop

Git Visual Studio with Bitbucket confluence Connect to existing project error / Fetch fails

六眼飞鱼酱① 提交于 2019-12-04 18:17:58
How do you pull from existing Bitbucket GIT repo using Visual Studio 17? Error " git failed with a fatal error. 'xyz' repository not found " I added this Misty BitBucket Extension from the marketplace Then I added the Git remote string as below with three types of options and this help page . First I tried this string -> https://<repo_owner>@bitbucket.org/<accountname>/<reponame>.git & https://<repo_owner>@bitbucket.org/<accountname>/<reponame> then I tried the URL path based on youtube videos & the over settings page https://bitbucket.org/myrepo/xos/src I get errors that the repo does not