简体   繁体   中英

how to fetch the old code from git repository

I think this is the simplest question but i am very first to the git . So can you please any body help me out. That is how to fetch the old code from the git repository and how to get the old code from the local(git repo in on my machine) repository

With git, you always have a copy of the complete repository including the history.

First, clone your repository:

git clone <repo_url>

Then checkout the old commit

git checkout <commit>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM