I have a project stored in a repository of
We must bear in mind that when doing a cloning of a repository remote from git , download the entire repository , which may not necessarily limit the return to some commit in specific. p>
I will explain an example with a repository that I created in
You could do the following:
1.- Clone the repository from the desired branch
git clone https://<usuario>@bitbucket.org/<repositorio> id_commit
2.- Recover the specific commit
git fetch origin <sha1-del-commit>
3.- Reset the branch to the desired commit
git reset --hard FETCH_HEAD