Questions tagged [git-clone]

Obtains a local copy of a remote Git repository.

1121 questions
278
votes
8 answers

BitBucket - download source as ZIP

I know I can get the project through git clone command, but is there any way, how to download the project through the web interface from BitBucket.org? In the best way, I am looking for a way to download a project source as ZIP compress file.
user984621
  • 41,002
  • 66
  • 200
  • 371
276
votes
6 answers

How to git clone a specific tag

From git-clone(1) Manual Page --branch can also take tags and detaches the HEAD at that commit in the resulting repository. I tried git clone --branch But it does not work. It returns: warning: Remote branch 2.13.0 not…
Jiang Jun
  • 3,037
  • 2
  • 14
  • 13
270
votes
10 answers

git clone through ssh

I have a project on which I created a git repository: $ cd myproject $ git init $ git add . $ git commit I the wanted to create a bare clone on another machine: $ cd .. $ git clone --bare myproject …
dlsa
  • 2,884
  • 2
  • 15
  • 15
256
votes
3 answers

Bower install using only https?

I am trying to set up Bower on a build server at our organization's data center, but git's port does not appear to be open on the data center's firewall. I can use the git command line client to clone via https://[repo], but not git://[repo]. Is…
Matt Mills
  • 8,209
  • 6
  • 32
  • 59
239
votes
19 answers

Files showing as modified directly after a Git clone

I'm having an issue with a repository at the moment, and though my Git-fu is usually good, I can't seem to solve this issue. When I clone this repository, then cd into the repository, git status shows several files as changed. Note: I haven't opened…
Sam Elliott
  • 3,560
  • 2
  • 15
  • 17
210
votes
18 answers

How to complete a git clone for a big project on an unstable connection?

I am trying to git clone the LibreOffice codebase, but at the moment I have an internet connection of about 300kbps and it's just anything but stable. I can get the connection back any moment, but then the git clone process already stopped working,…
LaPingvino
  • 2,383
  • 2
  • 16
  • 16
205
votes
9 answers

GIT clone repo across local file system in windows

I am a complete Noob when it comes to GIT. I have been just taking my first steps over the last few days. I setup a repo on my laptop, pulled down the Trunk from an SVN project (had some issues with branches, not got them working), but all seems…
Jon
  • 14,602
  • 28
  • 88
  • 126
201
votes
9 answers

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 one I cloned a month ago. How do I do this?
nandu
  • 2,193
  • 2
  • 13
  • 12
181
votes
8 answers

git clone from another directory

I am trying to clone repo from another directory. Lets say I have one repo in C:/folder1 and C:/folder2 I want to clone the work in folder1 into folder2. What would I type into the command prompt to do this? It seems that often when cloning a URL…
SeekingAlpha
  • 6,295
  • 11
  • 32
  • 41
175
votes
31 answers

Git: Permission denied (publickey) fatal - Could not read from remote repository. while cloning Git repository

I am unable to clone a Git repository, and getting this error: krishna.soni@KRISHNACHANDRAS /c/Projects $ git clone http://stage.abc.com:10088/pqr http:/// Cloning into ''... fatal: could not read Username for…
KCS
  • 2,257
  • 4
  • 14
  • 22
172
votes
5 answers

Unable to Connect to GitHub.com For Cloning

I am trying to clone the angular-phonecat git repository, but I am getting the following message when I enter the command in my Git Bash: $ git clone git://github.com/angular/angular-phonecat.git Cloning into 'angular-phonecat'... fatal: unable…
Mohamed Hussain
  • 6,577
  • 14
  • 47
  • 78
171
votes
5 answers

Git clone without .git directory

Is there a flag to pass to git when doing a clone, say don't clone the .git directory? If not, how about a flag to delete the .git directory after the clone?
Justin
  • 34,956
  • 68
  • 168
  • 266
158
votes
4 answers

How do I clone a GitHub wiki?

How do I clone my GitHub repository's wiki? I know it's saved as a separate Git repository, but I can't remember the path. I've tried ...reponame/wiki.git and ...reponame.git/wiki, but neither are correct.
joseph.hainline
  • 21,512
  • 16
  • 50
  • 70
153
votes
3 answers

How to update a git clone --mirror?

I have created a git repository to mirror a live site (which is a non-bare git repository): git clone --mirror ssh://user@example.com/path/to/repo Now, to keep this mirror clone updated with all changes from its remote origin, which command or…
J. Bruni
  • 19,262
  • 11
  • 70
  • 90
147
votes
1 answer

Empty Git submodule folder when repo cloned

I have one repo hosted at https://github.com/aikiframework/json . On my local copy, I added a submodule using the command git submodule add git@github.com:jcubic/json-rpc.git json-rpc Then I did a commit and push, and the changes appear on GitHub…
jcubic
  • 51,975
  • 42
  • 183
  • 323
1
2
3
74 75