Linked Questions
24 questions linked to/from How to clone git repository with specific revision/changeset?
257 votes
12 answers
470k views
Retrieve specific commit from a remote Git repository
Is there any way to retrieve only one specific commit from a remote Git repo without cloning it on my PC? The structure of remote repo is absolutely same as that of mine and hence there won't be any ...
249 votes
9 answers
405k views
Git clone particular version of remote repository
I cloned a remote git repository about a month ago. The remote repository has undergone many changes and has now become unstable. Now I need another copy of the repository, version identical to the ...
221 votes
10 answers
126k views
How to make shallow git submodules?
Is it possible to have shallow submodules? I have a superproject with several submodules, each with a long history, so it gets unnecessarily big dragging all that history. All I have found is this ...
190 votes
6 answers
89k views
How to shallow clone a specific commit with depth 1?
Is it possible to shallow clone a specific commit in a repository, i.e. with depth 1? Something like git clone http://myrepo.git 728a4d --depth 1 to get the repository state as it is at the commit ...
38 votes
1 answer
32k views
Asp.Net Mvc 4 Source code? [closed]
Is the source for MVC4 available? I've searched on codeplex and all the usual places but don't seem to be able to find? Do MS keep it under wraps until the very end? Why would they do that?
20 votes
6 answers
23k views
git checkout <commit> . is not removing files that were added after the commit
Using a public repo, I want to get my master branch back to a certain commit from the past. I have reviewed the options and the best thing for me looks to be a simple checkout to the desired commit, ...
10 votes
2 answers
11k views
Why does "git clone" not take a refspec?
It appears that a lot of folks have gone to replacing git clone with the combo git init && git fetch. This seems rather silly, and unfortunately tools like Jenkins won't do that for you. So ...
14 votes
4 answers
2k views
How to clone/fetch a repo getting only the history
Is it possible to download a repository's commits, branches, and tags, excluding blobs and trees? I would like to be able to view the history and whatnot without downloading the files (this is for the ...
9 votes
4 answers
2k views
Recover unreferenced commits from remote git repository
Here's the situation : some commits have been done in a remote repository. Unfortunately, someone did push -f such that no remote branch references these commits anymore. To make matters worse, I ...
3 votes
1 answer
4k views
fetch git repo at specific commit without cloning
I am trying to get a git repo at a specific commit hash without cloning! Every example wants to clone the whole repo. This makes sense but the repo I have in mind is huge and I need this to leave a ...
3 votes
2 answers
2k views
Git: How do download just a particular commit and not clone the rest of the repository?
I have a git repository and I want to just download the state of that repository at a particular commit. How do I do that? I don't intend to make any changes to the repository afterwards, and I don'...
0 votes
1 answer
2k views
Download commit using git clone
With the git clone command and arguments --depth/--branch, you can download the last commit of a specific repository branch, but how to download a specific commit using its hash? P.S. The use of git ...
2 votes
1 answer
1k views
Installation issues with iron-router (newest) on Windows 7 x64 (Meteor 0.8.3)
I'm attempting to install (via cloned repository) 'iron-router' for my Meteor project in Windows 7. ( Repo: https://github.com/EventedMind/iron-router ) The output is the following: While building ...
0 votes
1 answer
1k views
How do I obtain the sources for a specific linux kernel version without cloning the full repository?
Following answers from there: How to clone git repository with specific revision/changeset? It seems I can obtain a specific release of the kernel source. But not being familiar with the way the git ...
0 votes
2 answers
205 views
How to make git accept a URL?
I'm trying to perform the equivalent of a Subversion checkout to a revision. In SVN, this is one step. According to How to clone git repository with specific revision/changeset? I am supposed to be ...