UPDATE 2 Since the feature described below can be enabled on server side with configuration variable uploadpack.allowReachableSHA1InWant, here the and the. Note that some Git servers activate this option by default, e.g. Bitbucket Server enabled it since. See this for a exmple of how to activate the configuration option.UPDATE 1 For Git versions 1.7 # reset this repository's master branch to the commit of interestgit reset -hard FETCHHEAD. If you mean you want to fetch everything from the beginning up to a particular point, Charles Bailey's answer is perfect. If you want to do the reverse and retrieve a subset of the history going back from the current date, you can use git clone -depth N where N is the number of revs of history you want.
Click to set custom HTML