Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

fork a repo in bitbucket using bash

Hi all,

I can fork a repo using web GUI of bitbucket, it is straight forward.  But, I want to do the operation in bash.  Is there a way?



1 answer

1 accepted

2 votes
Answer accepted
DPK J Community Leader Sep 14, 2019

@CharlieFork is not standard Git or Command Line operation, so in simple words no you can't fork any repository using terminal.

But, once you have forked a repository, or you have cloned it in your local you can run git workflow using command line.

You can read this guide to maintain sync with upstream after fork using command line -

@DPK J , 

it is not true.  One of the member here suggested that I can fork using command line.

The post is here:

At the end of the post, she mentioned about how to do it with command line.

DPK J Community Leader Sep 17, 2019

@Charliewhat here suggested is REST API. If you are comfortable using that, like with curl etc. you can do that.


This is not command line but assessing using rest interfaces.

@DPK J ,

As long as I can write a command in a bash script to carry out the operation, and yes, that is what I am after.

Since you also tend to give me to the 'curl' command, I will give the credit to you.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,826 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you