This command works to get the files and compile them:
git clone a-valid-git-url
for example:
git clone git://cfdem.git.sour
Simply, after you clone the repo you need to cd (change your current directory) to the new cloned folder
git clone https://User_Name@bitbucket.org/Repo_Name.git cd Repo_Name