Questions tagged [bitbucket]

1

votes
2

answer
34

Views

How do I catch a git branch up to master when it is both ahead and behind?

I've created a branch called shift-development from master and did some work in the branch, putting it ahead of master by 40+ commits. I also made a small change to master, putting shift-development behind master by 1 commit. How do I catch shift-development up to master? i.e. bring the changes from...
NickBourque
1

votes
1

answer
32

Views

How to push downloaded ZIP project from bitbucket to Github?

I've downloaded a project that was on BitBucket as a ZIP. I've extracted it and now I want to push that project onto a new repository in GitHub with all its content (including commit history and so on). How can I achieve this?
Stackoverflowed
0

votes
0

answer
12

Views

Git Rebase or Squash?

I have created a feature branch from develop and that feature branch contains bunch of commits for approximately 20. Before merging the feature branch to the develop I want to convert all commits into one. Which one is the best way to accomplish this task git squash or rebase and how to do it?
saon
1

votes
1

answer
25

Views

How do I update my local Git origin vs. upstream settings?

I have been following this guide to migrate my BitBucket repos over to GitHub. Specifically, I'm creating the new GitHub repo, and then setting that as an upstream on my local Git config like this. git remote add upstream https://github.com:USER/PROJECT.git git push upstream master git push --tags u...
Drew Angell
1

votes
0

answer
62

Views

How to fetch code additions and deletions from Bitbucket API 2

In the GitHub API we have the possibility to get stats from a specific commit. E.g.: 'stats': { 'additions': 104, 'deletions': 4, 'total': 108 } I would like to know if for Bitbucket API V2 we have the same feature, I'm currently using: curl -X GET -H 'Authorization: Bearer ZZZ' -H 'Content-Type: ap...
g__n
1

votes
1

answer
478

Views

Bitbucket pipelines webpack build and ftp deploy NO JS OUTPUT on the server

I have my pipelines build settings: branches: production: - step: name: Build and test JS. image: node:8.9.3 script: - npm install - npm test - npm run-script build - step: name: Build and test PHP. image: php:7-fpm script: - echo 'Here will be the Composer build and PHPUnit tests.' - step: name:...
Edenwave
1

votes
0

answer
80

Views

Tslint errors shown in Bitbucket but not in local development environment

So, I'm wondering why I'm getting TSLint errors in Bitbucket. When I run the TSLint command during the development, it didn't show the error. Errors: ERROR: src/XXXController.ts[134, 13]: The key 'aXXX' is not sorted alphabetically ERROR:src/XXXController.ts[153, 21]: The key 'dXXX' is not sorted a...
Steven
1

votes
0

answer
261

Views

SONAR quality gates on cross-projects

We have set up our branching strategy in Bitbucket in a way that for each release to production we create a new release branch in Bitbucket (User Acceptance Testing and then the production release is done from this branch). Now for each feature to be developed in that release, we create a new featu...
Mitesh Parikh
1

votes
1

answer
236

Views

Git objects not accessible when using pre-receive hook in Bitbucket

I'm struggling to write a pre-receive hook which should verify push basing on existence of marker file. But newref populated by script is pointing into nowhere. I can`t get any data to validate getting: remote: fatal: bad object 3bb1ab6de84c324cd2fb0a7961bd5afccfd77d55 I`m trying to acquire data by:...
Szymon Masłowski
1

votes
1

answer
52

Views

How to rewrite git history to combine commits?

I've been trying to Google this but I think I have a special case and I'm not grasping if there's a way to do this. I started a project in a master branch and when it was stable enough, it was duplicated to a staging branch. Not long after, I decided to create a dev branch from master. Now at this p...
Martavis P.
1

votes
1

answer
43

Views

How to sync git repositories when central git repo (GitHub/BitBucket) is not available

Normally I push my git-changes from my development machine to BitBucket. This triggers a webhook to my other machine, which initiates a pull from BitBucket. [my machine] \ +---1.push--> [bitbucket] [other machine] However, it is possible for BitBucket to not be available sometimes. So I also want t...
doekman
1

votes
1

answer
386

Views

Git: fatal error occurs while trying to reset origin/master to commit [duplicate]

This question already has an answer here: Git - fatal: Unable to create '/path/my_project/.git/index.lock': File exists 28 answers I have the following situation: master is 2 behind on origin master How I got in this situation: By firstly applying 'Reset master to this commit' in Sourcetree. But th...
Nikola
1

votes
1

answer
330

Views

Jenkins Job should trigger only on Pull request not on push or commit of branch

I am able to trigger the jenkins job on pull request from Bit-bucket, but the jobs trigger on push of the branch and commits too, which is not the ideal scenario. We have using POLL SCM: which is blank. Refspec: +refs/pull-requests/*/from:refs/remotes/* Branch Specifier:** Job Should only trigger o...
rin
1

votes
1

answer
334

Views

Change SSH username when connecting with Bitbucket

I just inherited a laptop with a project hosted on Atlassian, etc. I have setup Git, and my Bitbucket profile. Yet, when I perform ssh -T [email protected] the connection is made using the previous guy's user name. I have changed user name and email on both local and global Git configs have validated t...
Yanick Rochon
1

votes
1

answer
559

Views

Bitbucket clone to Sourcetree, repeatedly asking for password

I am completely new to Bitbucket and Sourcetree. I have received a repository from my college, when I log into Bitbucket I find it there with all necessary files. I would like to clone it, so i can work with it on my laptop, so I drag it from the website to the Sourcetree window and get requested So...
nunatak
1

votes
1

answer
2.1k

Views

bitbucket ssh connection issue “shell request failed on channel 0.” even though I can commit to this repo

I need to setup Jenkins + bitbucket integration for particular repo. repo is as below origin ssh://[email protected]:7999/ta/wa-automation.git (fetch) origin ssh://[email protected]:7999/ta/wa-automation.git (push) I can clone this repo, commit to it without entering email and password...
vikramvi
1

votes
1

answer
455

Views

Python way to run git log command to fetch details of repository without cloning it

Is there a Python way to run git log command to fetch details of repository without cloning it? I want to run commands on bitbucket server to find all activities of a repository.
Mayank Srivastava
1

votes
0

answer
40

Views

Updating a local mercurial copy with a specific commit from another remote site

(I'm using real examples, so it is clearer.) I cloned an official Mercurial repository locally hg clone https://bitbucket.org/Coin3D/soqt -r default from this repo: https://bitbucket.org/Coin3D/soqt/branch/default Now I want to update my local copy with a commit taken from a remote fork of the main...
rmbianchi
1

votes
0

answer
232

Views

Configuring jenkins with bitbucket private repository

I am trying to integrate my private repository in BitBucket with Jenkins, I am following the same exact steps as shown in this video, but my error is not resolving. The following image shows the error I am getting. How do I resolve this?
Naresh
1

votes
0

answer
33

Views

git: permissions error after git pull

I had a git installation working fine, using a networked computer as a remote. However, this computer developed a problem and I've tried to move my remote to bitbucket.org. I believe I have most of it setup correctly, but I cannot perform a git pull without receiving the following error: fatal: fa...
t3chap
1

votes
1

answer
307

Views

SourceTree on MacOSX Sierra 10.13.x : Permission Denied at each laptop restart

I use SourceTree with Bitbucket. Since the last updates of my MacOSx there is this error at each time I restart my laptop (when I want to push my code to my Bitbucket account of course): git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin re...
anthony
1

votes
0

answer
374

Views

Automatically update npm version number during bitbucket pull request

I want to automatically increment a version number in my package.json as I merge in a pull request (to master). This will trigger a build and deploy using the correct version number. Having to manually set the version number is irritating as multiple branches could expect to have the same version n...
Liam Steele
1

votes
0

answer
55

Views

Upload file to git from html form

I would like some users of my website to upload files to a private git repo from an html form in my front-end. So far I searched within the docs of all 3 major git provider: github, gitlab and bitbucket. Each one of them offer an API to upload files which I would be glad to use, but here is the hicc...
Jona Rodrigues
1

votes
0

answer
71

Views

How can I reduce the size of a hg subrepo without breaking links to the parent repo?

I am trying to upload my repositories to Bitbucket. It's a parent repository and a handful of subrepos. One of the subrepos is so big (and my connection is throttled) that Bitbucket times out before it finishes the import. I am hopeful that if I make the subrepo small enough I will be able to upload...
Cathalson
1

votes
1

answer
249

Views

Bitbucket Jenkins plugin constructs wrong push URL

We use Bitbucket server and want to trigger a Jenkins build whenever something is pushed to Bitbucket. I tried to set up everything according to this page: https://wiki.jenkins.io/display/JENKINS/BitBucket+Plugin So I created a Post Webhook in Bitbucket, pointing at the Jenkins Bitbucket plugin's e...
ronin667
1

votes
1

answer
444

Views

GCloud App deploy using Bitbucket pipeline

I want to deploy my application using bitbucket pipeline in the production environment. I followed the instruction given in https://cloud.google.com/solutions/continuous-delivery-bitbucket-app-engine but this is deploying my application in the staging environment. My Pipeline file is image: pytho...
Prabhat Kashyap
1

votes
1

answer
229

Views

Build Failed in Jenkins

status code 128: stdout: stderr: fatal: Unable to find remote helper for 'https' How do I fix the above..?
Mike Shobes
1

votes
0

answer
82

Views

Bitbucket under CNTLM proxy

I'm using the cntlm proxy and I'm trying to push code to Bitbucket. I have no issue with GitHub, but with Bitbucket I have the following error: (443) ssh: connect to host altssh.bitbucket.org port 443: Network is unreacheable (22) ssh: connect to host altssh.bitbucket.org port 22: Network is unreach...
Surcle
1

votes
1

answer
75

Views

How to Avoid committing to Master in Eclipse [duplicate]

This question already has an answer here: Prevent commits in a local branch 1 answer I committed and pushed changes to the Master branch in GIT today using Eclipse. In our team it is a strict 'No'. While I know I have to be careful while pushing any changes to the Master and double check which bran...
Tuhin Ganguly
1

votes
1

answer
815

Views

Unable to merge unrelated branches in bitbucket

I am new to git and not super tech savvy when it comes to it. I use source tree to commit and push code. I am running into strange issues which I never did before. When I merge my branch to the master I get this 'Unable to merge, unrelated branches'. Moreover, I see strange things in my repo: The re...
RforResearch
1

votes
0

answer
41

Views

Persisting notebook on HDInsight cluster

Is there a way to configure HDInsight so I can persist a Jupyter notebook to a bitbucket (or github) repository?
rongenre
1

votes
1

answer
878

Views

jenkins pipeline PR build contains wrong branch name

I am using Jenkins multi branch pipeline with bitbucket and I see an issue where the automatic build created for a PR fails as I rely on env.BRANCH_NAME. Problem is that this env now holds not the feature branch name as expected, instead it holds the PR is (e.g. PR-2 instead of feature/test-branch)...
YaOg
1

votes
0

answer
87

Views

Bitbucket Pipelines case-sensitive filesystem

Tech: gulp, polymer-build, bitbucket pipelines I have a build step as part of a project which copies a bunch of bower_components files into the /dist folder. When run locally this works fine. However when running the same script on Bitbucket, it fails when reaching the module Chart.js Error: ENOENT:...
wazzaday
1

votes
0

answer
14

Views

How to create first project in bitbucket using ssh key?

I have tired to create my first project on bitbuck bucket with ssh key but it says that after cloning permission denied. Please help me anyone to solve this problem.
Raju Lamsal
1

votes
1

answer
988

Views

Git (SSH) hangs during clone/push/pull

Whenever I try and perform an operation using git (e.g. clone, pull, or push) over SSH the git client seems to hang and time out indefinitely (I've left it running for half an hour to no avail). I have my SSH keys loaded (using BitBucket). I am able to perform anything I need via HTTPS, and SSH is t...
Clay Benson
1

votes
0

answer
433

Views

How to clone only one branch in Android Studio?

I have posted the question to find the complete solution but unfortunately/mistakenly it has marked as Duplicate The answer posted in this post has partially help me. But I still need to know how to clone single branch in Android studio. In Android studio, I could see an option to mention the URL (x...
Rakesh L
1

votes
0

answer
171

Views

BitBucket Node.js Pipeline Environment Variables

This may be a stupid question, but is there a standard/best way to control the environments when deploying through a pipeline (for instance to Heroku). I have a Node.js app and, for instance, I use 'nodemon' in the 'npm start' script I specify in my 'package.json' in dev, but need it to run just 'no...
blubberbo
1

votes
0

answer
91

Views

Failed to load js/css from bitbucket server reverse peroxided by Nginx

I am very new with nginx and bitbucket server setup. I have an nginx server setup in front of bitbucket instance (running on port 7990). Below is my configuration of /etc/nginx/sites-available/default (not /etc/nginx/nginx.conf) server { listen 80 default_server; listen [::]:80 default_server; root...
Abhishek Chatterjee
1

votes
0

answer
49

Views

Publish project to BitBucket from VS2013

I am new in bitbucket. so first i create my login there and create two repositories. one is public and one is private. when i am trying to publish my existing project from VS2013 to bitbucket then i am getting error as following You cannot publish local branch master to the remote repository origin...
Mist
1

votes
2

answer
45

Views

I have 2 different folder names in my local and remote Bitbucket repo. What should I do?

The problem: In my remote repo, I have folder names in capital letter while on my local machine, I have lowercase folder names. git status says that everything is up to date. I've tried to delete my remote branch and make a push from the local. But everything stayed the same.
Ivan P

View additional questions