bitbucket

Using ssh-agent with jenkins while polling SCM

荒凉一梦 提交于 2019-12-10 09:34:54
问题 Im using the Jenkins ssh-agent plugin in order to give ssh credentials to my builds which works perfectly, however I have it set up to poll the scm (in this case bitbucket git) in order to check for changes. And of course to access the repo in order to poll for changes it also needs those ssh credentials, I cant seem to find anything related to this in the wiki but there must be a way to do so. It seems like such a silly thing for them to not have implemented it, after all if you need ssh

Git forking and pull-request workflow

喜欢而已 提交于 2019-12-10 08:56:57
问题 I have a repo of a react project. I'd like to take that repo as the "base" of a few other projects and use it as a starting point. I'd also like to keep all of the other repos which stem from it up-to-date based on what the "base" has going on. I am using Bitbucket for remote repo hosting and Tower locally as a nice GUI. Is the correct way to do this is fork the "base" in Bitbucket, and then clone it locally? Will the local repo be aware of updates to the "base" repo in any way? How would I

Trying to migrate to Github from Bitbucket, getting file size error

懵懂的女人 提交于 2019-12-10 05:47:00
问题 I'm trying to migrate from bitbucket to github. What I did was remove bitbucket from the remote and add my github account instead. I then tried to git push -u origin master but I got a large file detected error and then a this exceeds Github's file size limit of 100MB . I know which file is making the problem and I've deleted it a few commits ago but since it's still in previous commits it's still making problems. How can I fix this? 回答1: GitHub places a hard limit on the size of individual

fatal: could not parse HEAD Error When Committing

大憨熊 提交于 2019-12-10 02:17:28
问题 Whenever I try to commit my work, I get this error. fatal: could not parse HEAD What should I do if I want to preserve my changes? 回答1: Do you know what branch HEAD was supposed to point to? Was it master ? Run git symbolic-ref HEAD refs/heads/master . Basically, the symbolic reference with the name HEAD is corrupted somehow. You (or software you ran) must have gone poking around the .git dir. If I were you I would check to make sure nothing else in your repo is damaged. You can verify your

fatal: remote part of refspec is not a valid name in :capabilities^{}

[亡魂溺海] 提交于 2019-12-10 01:54:29
问题 Cloning a given repo from github, then pushing to a fresh repo on bitbucket, and I get the error: > fatal: remote part of refspec is not a valid name in :capabilities^{} > fatal: The remote end hung up unexpectedly What does the error mean - and what's causing it (I'm still new to git). Here's the log: - clone from github: $ git clone git://github.com/ASKBOT/askbot-devel.git test2 $ cd test2 - create a private git repo on bitbucket: on the site GUI - add remote: $ git remote add bbtest2 https

How do i set a private ssh key for hudson / jenkins to access bitbucket?

我只是一个虾纸丫 提交于 2019-12-10 01:50:18
问题 I'm trying to set up a Debian server with Apache2 as a front end to Tomcat 7 running Jenkins - which is working - but i want Jenkins to monitor a private Mercurial repository hosted at bitbucket and I'd like to use SSH. (I've tried with plain https but still no joy - there is a question answer here on SO that recommends using ssh) I've deployed Jenkins using the hot deploy capability of Tomcat by dropping the Jenkins .WAR file into /webapps. I can generate a public/private key pair on the

How to push history edited with 'git replace' to remote

谁说胖子不能爱 提交于 2019-12-09 21:23:09
问题 I have a remote with a history that looks like this: As you can see O and P are merge commits and both of them closed their old branch so now there's only one branch. I want to squash C-D-E-G-J-K-L-N into one commit and F-H-I-M into an other commit because they are just tiny commits cluttering the history. Locally I managed to squash C-D-E-G-J-K-L-N using the method described in the answer by John O'M. to this question, like this: git checkout -b squashing-1 N git reset --soft C~ git commit

Hg-git stopped working for multiple branches

旧巷老猫 提交于 2019-12-09 12:36:01
问题 I keep the main repo on mercurial but made a clone with hg-git for git lovers. The problem is that in the mercurial repo I went back to a previous commit, created a new anonymous branch and closed the old one. (Reason: postpone development of a feature) After that I saw that hg-git stopped working. I tried even to force the commit but still not succeeded. 回答1: Ok...finally founded the answer on another hg-git related question So it seems that you have to update the "master" bookmark to

bitbucket - The authenticity of host 'bitbucket.org' can't be established

六月ゝ 毕业季﹏ 提交于 2019-12-09 11:29:41
问题 I've been getting this issue when trying to push to my bitbucket repo, not sure why the fingerprints don't match: It asks me if I want to continue, but I can't type anything in the dialog after hitting ok. Any insight? Thanks in advance! 回答1: I had the same problem..found that this happens because bitbucket.org is not in the Known Host list . these are steps from the scratch... (Assumed you are using EGit with Eclipse and have configured ssh keys) EDIT: To Create Local Repository 1.Right

Capistrano bitbucket - Permission denied (publickey)

时光毁灭记忆、已成空白 提交于 2019-12-09 09:33:44
问题 I'm trying to deploy my application using Capistrano towards my DigitalOcean server. This isn't the first time I've configured a RoR server on DigitalOcean with Capistrano deploys that's why I'm confused; I haven't changed anything in my workflow. Here is my Capistrano configuration file: require 'bundler/capistrano' require 'rvm/capistrano' set :application, "foobar" set :repository, "git@bitbucket.org:sergiotapia/foobar.git" set :ping_url, "http://192.168.1.1/" set :scm, :git set :scm