The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best way to pull a code to the local Machine

Malarmannan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 16, 2022

I had pushed my local repository to the bitbucket cloud repository, Now i want to work in two different features parallelly as branch and then after testing i merge with master, what is the best way for this case. Should i create a another repository in local machine and then pull the code...?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2022

G'day Malarmannan!

Welcome to the Bitbucket Cloud community! :)

Based on your use case, if you wish to work on separate branches before merging them into master - I would suggest ensuring these branches are created in your remote repository (ie create 2 branches, branched from master) and then pull them down to your local.
Once you have these two branches locally, you can simply switch between them using git checkout command and then push to each branch when you are done making changes to them:


git checkout branch1
git checkout branch2

You can then create a Pull Request in the UI to merge these branches into master.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events