Linked Questions

257 votes
12 answers
470k views

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 ...
Varun Chitre's user avatar
  • 3,270
249 votes
9 answers
405k views

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 ...
nandu's user avatar
  • 2,683
221 votes
10 answers
126k views

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 ...
Mauricio Scheffer's user avatar
190 votes
6 answers
89k views

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 ...
Chin's user avatar
  • 20.9k
38 votes
1 answer
32k views

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?
user avatar
20 votes
6 answers
23k views

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, ...
mulllhausen's user avatar
  • 4,475
10 votes
2 answers
11k views

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 ...
Christian Goetze's user avatar
14 votes
4 answers
2k views

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 ...
Sally Richter's user avatar
9 votes
4 answers
2k views

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 ...
mickael9's user avatar
  • 488
3 votes
1 answer
4k views

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 ...
Christian Bongiorno's user avatar
3 votes
2 answers
2k views

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'...
xiaodai's user avatar
  • 16.3k
0 votes
1 answer
2k views

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 ...
Tagor's user avatar
  • 1
2 votes
1 answer
1k views

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 ...
MisutoWolf's user avatar
  • 1,273
0 votes
1 answer
1k views

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 ...
hookenz's user avatar
  • 39.6k
0 votes
2 answers
205 views

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 ...
jww's user avatar
  • 104k

15 30 50 per page