david.colais
david.colais

Reputation: 619

Clone/Pull from Bare Repo

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?

Upvotes: 0

Views: 252

Answers (1)

davids
davids

Reputation: 6371

You can clone the repo as usual with git clone and then, as you have the whole repo in your local machine, roll back to the commit you want with git checkout HASH.

Upvotes: 2

Related Questions