How can you download an earlier version of GitHub from the project? Assuming it's a version that does not have an associated tag, for example, at some point in last week's story.
How can you download an earlier version of GitHub from the project? Assuming it's a version that does not have an associated tag, for example, at some point in last week's story.
You can clone the repository and then run
git checkout <hash commit>
so you'll go to the commit you want, then you can create a branch based on that commit, for example
git checkout -b <nombre-rama>
or also after cloning you can do the following
git reset --hard <hash commit>
You can do it from Github this way:
If you want to download a version of a Git repository, just download the entire project. If you are under the control of Git versions, it means that you can go anywhere in the story.
To go to a specific commit in a git repository:
git checkout <sha1>
where sha1
is the commit hash in both formats (short and long), an example would be:
git checkout 97dd2ae065771908ee9ae0fa08ccdb58b5a6b18f
The official documentation is Git-checkout
You can also see other commands in this excellent Cheat Sheet