To Pull code from a repository to your MacBook you have to follow below steps
Open up a terminal.
Create a folder so that you can track where you want to pull code from BitBucket. If already have
Type below command now,
You were given a url like shown below
Now you are ready to pull the code under the testrepo_aman repository
If you see same output, your code will be imported to your MacBook and is listed under the path of folder given by you and you are ready to work on it
Open the code in Xcode, and start commit and push your changes to the repository. You can check out command from this post