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...?
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.