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

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

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)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events