All Questions
5,064 questions
-1
votes
0
answers
38
views
Is it possible to restrict the size of commits (diff) directly to master in Bitbucket?
The title says it all.
I know you can forbid commits/pushes to master completely but for pragmatic reasons I still want to allow my team to make "small" changes there (a few dozen lines per ...
0
votes
2
answers
74
views
Difference between 2 branches one branch existing in Bitbucket and other branch in github
Recently, we have migrated code from Bitbucket to GitHub repository. I would like to know if there is any git command to compare the branches between Bitbucket and GitHub. This comparison is to check /...
0
votes
0
answers
34
views
Automatic deletion of the source branch after merging in Bitbucket
The ui shows the process of merging the admin_assessment branch into the main development branch. However, the issue is that even if I don’t select the "Close source branch" option, the ...
0
votes
0
answers
24
views
How to validate code repos movement for tags, commit history etc
Our source repos currently is in Bitbucket. ~10 years of code checkin's it has.
We are moving our code to Gitlab now.
Pipeline fixes are NOT part of the current movement plan still how do we ensure/ ...
1
vote
1
answer
111
views
Copilot Code Review Button does not appear in Visual Studio Code Source Control Tab
I found this video showing how to review my local changes with Copilot:
https://www.youtube.com/watch?v=qHbVEDNMdGE (The section starts at 5:07)
In the video, you can see there is a button in the ...
0
votes
0
answers
28
views
How to remove read-only hook in bitbuckets?
I have jira connected with bitbucket, I did some changes in both jira and bitbucket and I get the following error when I try to push
! [remote rejected] test_pre_hook -> test_pre_hook (pre-receive ...
0
votes
0
answers
50
views
Bitbucket Repo clone error SSL connection timeout Error for Bitbuket
I am trying to clone the repo from my bitbucket using VS code. While cloning the repo from VS code, i am getting an error unable to access 'https://bitbucket.org/projectname/reponame.git/': SSL ...
0
votes
1
answer
81
views
After merge to master, rebase with master giving conflicts for all files merged to master
Case
A new branch created for given requirement
Adding changes as per requirement in the branch and
Below commands executed every time we commit
git add .
git commit -m "comment" (...
0
votes
1
answer
50
views
Git Repo hierarchy
I have a Git server(on bitBucket if it matters) that is structured with a ton of project folders.
I'd like to set it up so there are sub directories essentially that are their own repo.
essentially ...
0
votes
0
answers
46
views
How merge everything into origin/master and get rid of origin/main?
I have a git repo backed by a BitBucket instance. In this repo I appear to have three branches:
main (my local branch I guess)
origin/master
origin/main
The master naming scheme seems to be the ...
0
votes
0
answers
71
views
Compare git repos after migrating the hosting services from bitbucket to github
Our organization is migrating git repos from bitbucket to Github.
We have hundreds of repos, and the migration is delegated to the IT team and we developers have to make sure that they are in sync and ...
0
votes
1
answer
180
views
How to add custom branch types in Bitbucket Branching Model?
I’m using Bitbucket and working with the Branching Model feature to manage our repository branches. Currently, I can see predefined branch types like feature/, bugfix/, hotfix/, and release/, and I ...
1
vote
0
answers
26
views
bitbucket push not working even though pull is working fine (SSH)
hopefully someone can help here
Im having issues using git push (git pull works fine) - i have a SSH key set up, but still get the following error :
Unauthorized
fatal: Could not read from remote ...
0
votes
0
answers
54
views
Git changes related
I installed the Github Copilot update on my PyCharm 2024.2.1 (Community Edition).
When I restarted the IDE, I couldn't find the changes I made to the code in the Commit section nor can I see the ...
0
votes
0
answers
48
views
PhpStorm vs Terminal authenticating to BitBucket
I am using PhpStorm as an IDE with a BitBucket repository. To authenticate communicating with the repository (eg push and pull) I have installed git-credential-helper and, in MacOS Terminal, this ...
0
votes
1
answer
54
views
Resolving merge conflict & Automatically marking PR as remotely merged
Trying to understand why it works.
Pre-Req: Branch creation: Main -> New Release Branch (release/2024-12-12) - > New feature Branch (feature/NewMenu)
I add my changes to feature/NewMenu. Raise ...
0
votes
0
answers
89
views
Can someone help me know how to integrate liquibase in bitbucket pipeline?
I am planning to use liquibase for my database migration. I have succesfully installed the bitbucket in local machine and tested everything. Now It is the time when I want to automate the database ...
-1
votes
0
answers
23
views
How to create layered auto-merge in BitBucket
We have a scenario where we have multiple layers of branches that all need to auto-merge
develop
qa
release/1.0.0
user/me/test - created from release/1.0.0
When i merge user branch to release branch, ...
-1
votes
1
answer
63
views
Problem with "divergent branches" after creating IntelliJ project and pushing to new Bitbucket repository
I am trying to push a new IntelliJ project into a new Git repository on Bitbucket, but it fails with a "divergent branches" message. I really want to use IntelliJ and not step out to the ...
0
votes
0
answers
24
views
Why do Sync Changes in VSCode lead to rebase when there are no upstream changes?
We have a regular (short-lived feature branches) git flow with one main branch and feature branches going in and out of main. When there are are commits in main not in my feature branch, I merge main ...
0
votes
0
answers
33
views
Bitbucket: Two private keys, Same account (Google Auth) different workspaces, How to setup ssh config file?
I have two bitbucket workspaces and as everyone knows, bitbucket requires separate ssh keys for both accounts (much like your password 'vas123' is already in use). I setup my .ssh/config file as ...
1
vote
1
answer
45
views
Why is Gitflow release operation doing so many actions in Bitbucket
I learned that release action in GitFlow is merely a merge develop branch (latest update) to the release/XXX branch with a TAG on it.
I would like to do simply as following:
git checkout -b release/...
0
votes
0
answers
99
views
Bitbucket shows non-existent changes as diff
I'm creating a PR on Bitbucket from branch A to branch B. Both branches have a cypress.config.ts file, and the files are identical. However, it shows a diff like the one below, which is confusing.
...
0
votes
1
answer
104
views
Git - could not resolve host: bitbucket.org - 'dig' command results
While working in WSL and git pull/push to git, I suddenly get the response
ssh: Could not resolve hostname bitbucket.org: Temporary failure in name resolution
fatal: Could not read from remote ...
0
votes
0
answers
49
views
Warning: LF will be replaced by CRLF
We fetch the discrepencies of our salesforce org and our bitbucket repository and add commits with differences for each component type:
Steps for automated script:
Create a new branch and checkout to ...
1
vote
0
answers
45
views
How to merge two main branches without creating parallel tracks?
We have a number of main branches in our git repositories:
develop: where we do our development work (based on the v2 stable branch)
v<version-number>: Stable branch for release <version-...
0
votes
0
answers
61
views
Is there a way to enforce conventional commits on a squash commit to main in Bitbucket cloud?
Our repo has pre commit hooks that enforce conventional commits on a push, but we can't figure out a way to enforce conventional commits on a squash commit to main/master in the Bitbucket Cloud.
Any ...
0
votes
0
answers
34
views
Bitbucket python Multiple PR requests against the same branch
I am trying to create a python script that creates multiple PR merge request from different branchs towards the same main branch but get the error. I am unsure why " HTTPError('Branch "&...
0
votes
0
answers
33
views
Issue in bitbucket pull request, extra curly brace added
I have changed one JSP file and committed that file to separate bitbucket branches 'A' & 'B'. Then, I created 'C' branch on top of 'B' branch.
'C' branch file has the same changes as 'A' & 'B' ...
0
votes
1
answer
149
views
How do I use a custom git config file for a project through bitbucket?
I'm creating a custom sharedgitconfig file in one of the repositories of a project in bitbucket based on what I was able to read here. I'm a beginner, so please bear with me if these questions are ...
0
votes
0
answers
135
views
How to run garbage collector on Bitbucket repository
My local repository is considerably smaller than the remote repo on bitbucket (~800 megabytes locally and 3.8 gigabytes on the remote). This is an issue because my repository is about to hit the 4GB ...
0
votes
2
answers
61
views
git command to display un-merged branches for particular user in master repo
git command to display un-merged branches for particular user in master repo
git branch -a --no-merged master
Used above command but unable to filter with specific user, as unmegred branches volume ...
0
votes
0
answers
39
views
Git is incorrectly telling me I have read-only permissions to a remote repository?
I have a Bitbucket Server repo that I'm trying to push local commits to but I keep receiving this error:
You cannot push to <project>/<repo>. Pushing requires write access and your access ...
-2
votes
5
answers
234
views
Trouble cloning a git repo using ssh with a secondary (non default) public key
I am trying to access an old git repo on BitBucket via SSH.
The SSH key has not changed on either the client or BitBucket, but cloning the repo is failing.
git clone [email protected]:...
0
votes
1
answer
68
views
fast forward merge of outdated master
I have an outdated master branch which was updated back in 2020.
Now I want to sync my master branch with latest release branch, I tried below
git clone https://repo...
cd db-repo-1
git checkout ...
0
votes
1
answer
98
views
Old master branch out of sync
I have a master branch for a repo in Bitbucket, which was last updated back in 2017. Now I have a task to sync the latest release branch with master and need to bring all code from release into master....
0
votes
0
answers
33
views
Compare bit bucket branches and see differences that should not be seen
I have the following branches
uat
prep
prod
I have same code in all 3 branches.
When I compare UAT as Source and PREP as Destination, bitbucket shows no differences.
however, If I compare UAT as ...
0
votes
0
answers
77
views
Why would a Bitbucket Mirror Hook work from Repo A but not from Repo B?
I have a Bitbucket "Mirror Hook" (found in the "hooks" section of settings). It was correctly mirroring everything from Repo A into Repo C. But now, we have to migrate Repo A to a ...
0
votes
0
answers
50
views
Resolving conflicts in Bitbucket Automatic merge failure PRs
The repository has Automatic branch merging set up to automatically merge changes from branch release/1.0 to release/2.0 upon PR merges on release/1.0. release/2.0 already has feature B code that ...
0
votes
0
answers
20
views
How to Add Both Bitbucket and GitHub as Remote Repositories for a Single Git Project and Push to Both? [duplicate]
I'm working on a project where I need to use both Bitbucket and GitHub as remote repositories. I want to be able to push my changes to both platforms simultaneously. I already have a Git repository ...
1
vote
0
answers
38
views
Differences in fetch between git bash on windows and git on ubuntu
We are seeing a difference in git on windows and ubuntu when fetching from bitbucket.
On windows git bash 2.44.0 we see this. Pack size does not increase after each fetch
$ git fetch --tags --force --...
-1
votes
1
answer
165
views
Bitbucket merge issues
I was trying to merge release branch into develop branch in bitbucket. For this when I am creating pull request it's not allowing me to create one, saying develop is already up to date.
But I know for ...
0
votes
0
answers
291
views
Get Diff Stat for Pull Request BitBucket Server REST API
I am working on some adapter implementation for Bitbucket Server. There is one already for Bitbucket Cloud, I want to be able to get the diffstat for a pull request. I could easily do that for Cloud ...
0
votes
0
answers
20
views
Git Showing Same Line Removed and Added after Merging Master into Feature Branch [duplicate]
After I merged from master, there were a few conflicts which I resolved, I am seeing various files having the same line deleted and added back in. I am not sure where this is coming from or how to ...
4
votes
3
answers
389
views
Jekyll build errror on Vercel project
I have a Jekyll website hosted on a Bitbucket repository.
And I have a Vercel project that runs that website to generate the static files.
Some days ago, it works great, but today it started to fail ...
0
votes
1
answer
54
views
How to manage a repo with other repos on it?
I'm using BitBucket and have a repo (A) that has a copy of two other repos (B+C).
Every time that I make a change on repo B or C, I have to remember to copy that changes to the repo A and push that ...
1
vote
0
answers
93
views
Bitbucket: Hide "import/package" changes in diff in pull request
I was wondering if there is a Bitbucket Plugin or something similar that detects import/package changes in a pull request and either hides those lines or if the file is only consisting of these ...
0
votes
0
answers
36
views
Conflicts when merging after rebasing in a working branch
I have a feature branch derived from master which is some months old now. I want the latest commits from master in my feature branch so I am rebasing.
However, I am doing this in a new working branch, ...
-1
votes
1
answer
166
views
fatal: remote error: CAPTCHA required - BitBucket - Ubuntu - VScode
When trying to pull or push I get this error "fatal: remote error: CAPTCHA required".
I read and tried these threads: StackOverflow Thread 1, StackOverflow Thread 2, StackOverflow Thread 3, ...
0
votes
0
answers
45
views
Merge Request in Bitbucket: Possible to exempt a specific branch to ask for Merge Request?
I've been using Bitbucket for a few months now. I was asked to restrict developers from merging with develop branch unless they're the lead developers.
I created a branch restriction in develop branch....