how can I return to a specific commit and then download the entire project from there?

0

someone could help me and let me know if it is possible and how, to be able to return to a specific commmit to be able to either clone or download the project from said commit backwards, that is to say the whole project until the desired commit.

    
asked by Programador S 11.05.2018 в 22:34
source

2 answers

1

In this answer is the solution:

git clone https://github.com/usuario/my-repo-name.git my_repo
cd my_repo
git reset --hard [Hash del commit que quieres]
    
answered by 11.05.2018 / 23:26
source
0

You could download the repository and return it between the commands using the command:

$ git checkout <hash> --hash es el numero del commit
$ git checkout HEAD~2
$ git reset --HEAD.
    
answered by 11.05.2018 в 23:25