From: Johannes Schindelin Date: Sun, 10 Feb 2008 16:45:57 GMT Subject: Re: fetching a single commit from remote repo Message-ID: In-Reply-To: <1530970.y9vPlhFxz8@yoush.homelinux.org> Hi, On Sun, 10 Feb 2008, Nikita V. Youshchenko wrote: > I'm looking for a way to fetch a single snapshot, without history, from > remote git repository. > > I've found how to do it with a head (clone --depth 1, or fetch --depth 1). > > Is it possible to do the same with non-head and non-tagged commit, if only > sha1 name of the commit is known? > Looks like fetch and fetch-pack only take ref names :( Yes, for security reasons. If you pushed some code you were not allowed to push, you have to have a way to undo the error by force-rewinding. Ciao, Dscho