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
Apples-MacBook
Apples-MacBook
Apples-MacBook
Type below command now,
Apples-MacBook
Apples-MacBook
You were given a url like shown below
https://[email protected]/testteam_aman/testrepo_aman.git
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
http://www.amaniphoneblog.com/2015/03/bitbucket-and-xcode-tutorial.html