Clone commit from a project on Github

Asked

Viewed 137 times

0

Hello, everybody.

So, I’m taking an angular course that has a project hosted on Github. But I don’t want to clone the project ready. I’d like to clone/download the commit with the initial project structure and status. In this case, it’s the first or second commit.

You can do it??

1 answer

1


You can clone this repository as is, and create a branch for yourself from the desired commit, it would look like this:

git checkout -b minhabranch 6hjsb8da2f0e32ashi89998jnwbdeecb73fc892749ghbs7629

With this, you create a branch from the desired commit

Browser other questions tagged

You are not signed in. Login or sign up in order to post.