Obtains a local copy of a remote Git repository.
Questions tagged [git-clone]
1359 questions
-1
votes
1 answer
Trouble with connecting to Git Server via Jenkins
Friends, i keep getting the following error in Jenkins console.
"Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h ssh://yyyyyyyy@gerrit.xxxxxxxx.com:29418/mobile HEAD" returned status code 128:
stdout:
stderr: Host…

Madhav Murthy
- 3
- 4
-1
votes
1 answer
How do I get from my local repository to a full clone?
If I am starting from scratch I can clone a remote git repository using the command
git clone --mirror
(Documentation.)
However I am not starting from scratch, I already have several branches locally (tracking the remote): all the…

dumbledad
- 16,305
- 23
- 120
- 273
-1
votes
2 answers
git server error: corrupt loose object on remote
I have an error in response to
git fsck --full
which is corrupt loose object '...'
on a git server machine.
I don't have a local repository. I can't clone. I don't have the object in repo/objects/...
Do you have any ideas on how to fix this?
The…

disgra
- 683
- 3
- 6
- 18
-1
votes
1 answer
How to clone github repository to particular folder of hosting without Repository name?
I have my repository on git and it works fine. Repository name is say XXX. Now when i goto my hosting service by connection with SSH and try to clone code with "git clone URL" command in my public_html/ folder, it creates public_html/XXX/. Is there…

Tejas P Mehta
- 69
- 1
- 7
-1
votes
2 answers
Git clone doesn't work remote: Repository not found
I'm trying to clone my private repo from the remote host and it works on every other computer but doesn't work for me for some reason.
I have already tried,
git remote rm origin
and
git remote add origin {{url for git repo}}
but no luck. Is…

CoderKK
- 351
- 1
- 7
- 18
-1
votes
1 answer
Branches other than master are hidden after cloning a Git repo?
When I do a git clone and then a git branch, only the master shows up. I only see the other branches from the remote when I do git branch -a.
Why are the other branches hidden?

user3688869
- 15
-2
votes
2 answers
Git Clone specific folders from src repo to dest repo with preserving history
I have 2 working repositories, repo1 and repo2.
I want to clone only a few folders from repo1 to repo2 along with the commit history of those files.
example:
copy repo1/src/build to repo2/src1/build
I tried cloning everything with histories but then…

Hith
- 308
- 1
- 6
- 16
-2
votes
1 answer
git clone AWS codecommit failing with 403
I am following https://aws.amazon.com/getting-started/hands-on/build-serverless-web-app-lambda-apigateway-s3-dynamodb-cognito/module-1/
and facing an issue when trying to clone the repo "wildrydes-site" I just created in CodeCommit.
git clone…
-2
votes
1 answer
Not able to clone a new repository to a directory in terminal (Mac)
I am trying to clone a repo from GitHub into a directory on my mac's terminal. I make sure that I am in the correct directory on my terminal, then I go to my repo on GitHub, press the green "clone" box in the upper right, select SSH key and copy the…

hanah.rat
- 17
- 3
-2
votes
1 answer
Unversioned Files appear from nowhere
I shifted to Ubuntu from Windows and when i cloned the project from git repository and opened it in android studio, many files appear in un-versioned files. How to get rid of them?

Talha
- 51
- 9
-2
votes
1 answer
How to clone a repository in gitlab CI/CD
I have the following CI/CD
build-job:
stage: build
script:
- echo "Hello, $GITLAB_USER_LOGIN!"
- ls -al
- mkdir django_app
- cd django_app
- git clone git@gitlab.com:xxxxxx/yyyyyy.git .
It says
$ git clone…

Santhosh
- 9,965
- 20
- 103
- 243
-2
votes
1 answer
Error in github? why im i getting this error has been days i cant download the project
This fatal error shows up on github everytime I try to clone the project I tried to download it from the github website but still gets the same error, I have to find a solution because it takes 14-16hrs to download it and as soon is finished I try…

Ardian Krasniqi
- 1
- 2
-2
votes
1 answer
Not all the files in the repo appear when I clone from gitlab
I can’t seem to figure it out and it’s been hours. I cloned a repo but not everything inside it appears. Basically I want to clone a repo that has a certain .ipynb that I want to run on jupyternotebook, but it’s not included when I clone the repo

Dani
- 1
- 4
-2
votes
1 answer
GIT, How to return the list of available remote repositories in the command line?
GIT, How to return the list of available remote repositories in the command line? of course, being in the space of one account like: ...?tab=repositories
In other words, choose a repository for cloning without opening the browser. If is it…

Alex Sonar
- 41
- 2
- 6
-2
votes
1 answer
Is there a way to clone all repositories on github at once? In SVN I can to do so
Are there a way to clone all repositories on github at once ?
For instance, I have three repositories:
spring-akka-reactive
angular7-springboot
Angular-RestAPI-Contacts
Thus I want to clone them all instead one at a time, is it possible…

Edson Cezar
- 25,884
- 5
- 19
- 27