Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [git-clone]

Obtains a local copy of a remote Git repository.

29
votes
3answers
32k views

Git access to private repository using HTTPS

Trying to clone a private repository I have access to using HTTPS protocol, as that is only allowed outgoing traffic. git does not ask for passwords, just failed. error: The requested URL returned ...
2
votes
1answer
340 views

Visual Studio - Remote: HTTP Basic: Access denied Error encountered while cloning the remote repository: Git failed with a fatal error

I'm working with Visual Studio and am trying to clone a online repo from a server where gitlab is running. Let's call the server https://gitlab.example.com I get the following error when I try to ...
1
vote
2answers
63 views

Git metadata - is there a way to add git metadata that is independent of each branch?

For example, the data that is in .git folder is typically git-ignored. I want to add some data to my repo so that the data is independent of all branches, but still appears in all branches, and when ...
3
votes
1answer
1k views

Android Studio: Clone Failed! Failed to Start Git process

I Started New Android Project with my Friend. He does some work and uploaded on Git. I used Android Studio[v2.3.3] and when i clone repository it Show message Like Clone Failed! Failed to Start ...
194
votes
14answers
71k views

Files showing as modified directly after 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 repo, git-status shows ...
108
votes
19answers
329k views

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://<url>/<repository> Cloning into '&...
285
votes
13answers
334k views

How to clone git repository with specific revision/changeset?

How can I clone git repository with specific revision, something like I usually do in Mercurial: hg clone -r 3 /path/to/repository
0
votes
0answers
13 views

git-remote-http died of signal 13

I have walked through this: Git clone through https dies of signal 13 but there's no good anwser yet. So I am asking again. I think it's a curl problem, I have curl 7.35.0 installed on my ubuntu14.04,...
3567
votes
34answers
988k views

How to clone all remote branches in Git?

I have a master and a development branch, both pushed to GitHub. I've cloned, pulled, and fetched, but I remain unable to get anything other than the master branch back. I'm sure I'm missing ...
158
votes
14answers
43k views

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 ...
255
votes
3answers
68k views

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 ...
0
votes
0answers
19 views

To (sub)clone / create only part of original repo / starting only from specific commit / sha

Is it possible to only clone (i put in title "sub" clone to highlight specifically I do not want to clone entire repo) parts of the repo, from very specific commit / sha? Or, from the start of only ...
0
votes
2answers
20 views

Meaning of output messages when doing a git clone

I was doing a git clone and I received some messages on the terminal which are: Cloning into 'mychain'... remote: Counting objects: 251877, done. remote: Compressing objects: 100% (115770/115770), ...
1
vote
2answers
25 views

Are git clone receiving object and checkout the same

I was going through an article which said: During the git clone, you'll find that checkout takes a long long time. I don't know what that meant by 'checkout'. Does it mean 'Receiving objects'? I ...
3
votes
2answers
9k views

How to troubleshoot an url error with “Port number ended with 'y'”?

While trying to clone an already existing repository from gitlab into my local drive. I used the format $ git clone https://github.com/libgit2/libgit2 mylibgit The resulting folder e.g mylibgit ...
-1
votes
1answer
18 views

Error while cloning flutter project from Github

I am trying to clone the following Flutter project from Github. https://github.com/rxlabz/flutter_dropcity But I am getting the following error in build.gradle using VS Code terminal. What ...
0
votes
0answers
41 views

how to clone a git repository which has files with “>” symbol in the file name

The previous team created code in a bizzare naming convention. I'm looking to clone a git repository which has files with ">" symbol in the file name. Ex: "Data>1234.ipynb", "Data>5678.ipynb" etc. ...
1
vote
1answer
2k views

Git clone remote repo into another remote repo

Cloning git repo from remote server to local computer is rather easily done the standard way, but I need to clone a remote repo into another remote repo, is it possible? P.S. I come up with this ...
0
votes
1answer
18 views

Cloning a local repository with submodules that is tracking a remote repo

Our compilation model consists on a super-project with 200 subprojects. My local copy tracks our development (remote) server. I need to make a clean clone of the super-project but I'm bandwidth ...
-1
votes
1answer
22 views

how do I clone a git repository using node.js specific commands

I'm wanting to clone a git repository using node.js command prompt. What are the commands I need to use to create a project area and then clone the repo to it?
11
votes
4answers
16k views

Clone multiple git repositories in one local directory?

Is it possible to git clone multiple git repositories with one command (for example: git clone "1.git,2.git,3.git.." in one local directory?
0
votes
1answer
23 views

Git clone with authentication over HTTP protocol

I have a centos 7 server with a git repo shared over smart http, when I make "git push" the authentication works but when I make "git clone" not works. I want than Git and Apache ask me user and ...
210
votes
8answers
165k views

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 ...
2
votes
0answers
189 views

While I try to clone bitbucket repository it throws a warning and cloning is not successful. solution?

Cloning into '/Applications/MAMP/htdocs/flagday2'... warning: templates not found /usr/local/git/share/git-core/templates Completed with errors, see above The folder inside htdocs automatically ...
54
votes
18answers
38k views

How to clone all repos at once from GitHub?

I have a company GitHub account and I want to back up all of the repositories within, accounting for anything new that might get created for purposes of automation. I was hoping something like this: ...
0
votes
0answers
40 views

Git clone a little bit at a time or other solutions

I'm working on a Windows machine, from git bash. We recently moved our project from a TFS server to a git repo on the same server. As far as I know, this was all done in one commit. I am remote. ...
0
votes
0answers
23 views

How to add lfs support to this git setup?

I've set up my git repos like this: a bare repo on my HDD and a clone of it on my SSD. The bare repo is acting as a backup. Now I want to add lfs support to it and can't figure out how. I tried doing ...
1
vote
0answers
41 views

How to add a remote to a repository with lfs?

I'm trying to set up something like this: a bare repo on my HDD drive and a clone of it on my SSD with lfs installed. I'm doing it like this: First I set up a bare repo on my HDD: mkdir git_lfs_test....
1
vote
0answers
30 views

cant clone project from heroku - (in other computer)

i logged in to heroku and trying clone my project from there but i getting some problem with credentials. i'm not understand what i missed.. copy paste from the cmd: D:\---...>heroku login heroku:...
2110
votes
7answers
2.0m views

How to clone a specific Git branch? [duplicate]

Git clone will behave copying remote current working branch into local. Is there any way to clone a specific branch by myself without switching branches on remote repository?
23
votes
4answers
5k views

How do I clone a large Git repository on an unreliable connection?

I want to clone LibreOffice. From the official website, this is what's written: All our source code is hosted in git: Clone: $ git clone git://anongit.freedesktop.org/libreoffice/core # (...
0
votes
0answers
25 views

how to config git clone with intelliJ behind authentication proxy server

I am new for IntelliJ. I am try to create project from GIT clone but failed due to connection time out. I have do configure proxy @system settings>http proxy with authentication and check github clone ...
4
votes
4answers
1k views

Git clone leads to deleted & untracked files

I am new to Git. I just installed Git (2.9.3) for Windows (10), then I opened git-bash and did a git clone <remoteURL>. A new folder is created with the whole copy of the remote repository, ...
1
vote
1answer
48 views

Cloning subtree/subdirectory of git repo

I have a git repo on Github, looks like so: .git/ assets/ tools/ a.sh b.sh c.sh of course the .git folder is not in version control, but you get the idea. And I want to copy the tools/*...
0
votes
0answers
14 views

Git clone depth, postbuffer and maxrequestbuffer

I am facing 'The remote end hung up unexpectedly' issue while cloning a large repository. The helpful resources have listed the solutions to change the depth, compression etc. while cloning. Can ...
4
votes
1answer
6k views

Change Git Repository Of Existing Xcode Project

I cloned an abandoned repository from Github, and now I want to be able to upload my changes to a private repo so that a few other people can work on the changes with me. Unfortunately, since I cloned ...
0
votes
1answer
30 views

django clone repo is not working

I clone a Django project from github. But when I ran the python manage.py runserver it showed the following errors. How to fix them? python manage.py runserver Traceback (most recent call last): ...
0
votes
1answer
31 views

How to clone, then sync/update/push a fork with the upstream master

I think I've read through some of the tutorials and I'm stuck on something entirely basic (I hardly ever use the commandline git, so please be patient ;)). All I want to do is update my fork (https://...
4
votes
2answers
1k views

Git cannot create shallow-since locally

I am trying to create a --shallow-since working clone from a local bare clone but it keeps pulling everything. --depth=N works fine. I'm thinking the issue is I'm using the wrong format? I've tried ...
0
votes
0answers
24 views

Checking out specific file from git repository

I have a git repository named demo.In that git i have a file named details.This details file contains some filenames listed in it.My requirement is that when i checkout the repository, I want only the ...
2
votes
0answers
111 views

Jgit clone with git lfs enabled repository not working

Current setup I have a repository which is git lfs is enabled. There is another level of authentication present for accessing the drive where lfs content is stored. When I run the below code from ...
0
votes
0answers
14 views

Transfering a repostory (already with git LFS) from Github to BitBucket

I managed to transfer my github repo to bitbucket and it seemed to work. The problem is, when i try cloning the bitbucket repo, i get this error: [...
0
votes
0answers
49 views

Clone repository failed error

I have a problem where I try to clone a repository and i'm getting the following error message: fatal: curl_global_init failed and this is what i'm trying to do: $ git clone http://10.0.50.168:...
2
votes
1answer
105 views

How to solve git clone error in gitbash

I installed gitbash and generated ssh keys and copied it to my bitbucket account. I tried clone a repository. I'm getting an error as: Git clone “fatal: I don't handle protocol 'ssh'” Please help ...
0
votes
1answer
37 views

Git push to remote repo has no effects

I have set up a repo at a server of mine like this: > git init > git config --local receive.denyCurrentBranch updateInstead > git add * > git commit -m "Init Git" This is how I have ...
0
votes
0answers
43 views

Git repo does not appear to be a git repository

I would like to set up a git repo without GitHub. On my server I have a initialized a git repo like this: > git init > git add * > git commit -m "test" Now I want to clone this repo from ...
2
votes
5answers
2k views

“Authentication not supported”: jgit error when trying to clone tfs hosted git repo

When I try to clone a tfs hosted git repo http://tfstta.com:8080/tfs/DefaultCollection/_git/SampleTFSGit from my linux machine, I face the Authentication not supported error: org.eclipse.jgit.api....
1012
votes
10answers
540k views

How do I clone a subdirectory only of a Git repository?

I have my Git repository which, at the root, has two sub directories: /finisht /static When this was in SVN, /finisht was checked out in one place, while /static was checked out elsewhere, like so: ...
0
votes
0answers
71 views

How to speedup git clone for big binary files (disable delta compression)

Question I was wondering why git clone seems to not respect -delta in .gitattributes. Reproduction I prepared a test repository with: .gitattributes containing *.bin binary -delta 10 commits with ...
1
vote
1answer
233 views

Issue with cloning repository from GitHub Enterprise

I've been working on a branch of a GitHub enterprise repository for a few weeks now, (and having no problem making commits/clones, etc.). However, my GitHub has suddenly broken, and I cannot make ...