git init
This code initiates a local repository
git remote add origin REPOSITORY_URL
This will link your local repository to your remote repository.
Your repository url can be found on the main page of the recently created repository. You can create a repository at bitbucket.org