I have a bare GIT repo set up in my Ubuntu Server.
I have made several commits to the bare repo over several days.
When I cd to the bare repo and do a git log I get the SHA code for the several commits along with the commit messages.
How can I clone/pull the commits from the bare repo using the SHA codes so that I can get files which were committed during that commit?
您可以像往常一样使用git clone
,然后,在本地计算机中拥有整个存储库的情况下,使用git checkout HASH
回滚到所需的提交。
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.