Obtains a local copy of a remote Git repository.
Questions tagged [git-clone]
1359 questions
0
votes
2 answers
How to set up correctly a git_clone?
I'm doing a C++ program that should clone several repositories using libgit2.
The problem is that when I clone a repository, it clone the whole content into the path but it doesn't create a sub-file unlike when I do the same command with git bash…

Quentin Lam
- 49
- 8
0
votes
0 answers
After git clone files in bin folder become not executable
I'v got Rails' app git repository with some executable files in bin directory. With permissions 646 -rwxr-xr-x each. I double checked and permissions are set correctly in git repository, but when I clone the repo I lose "x" for those files, so…

Artur79
- 12,705
- 1
- 22
- 22
0
votes
1 answer
Clone Git repository with flat history
I've searched for this, but could find an information regarding this.
I would like to clone a repository and keep the commit history, however I only want to have the flatten history, not all the tree bubbles:
How can I remove them, that I have a…

Tim
- 2,805
- 25
- 21
0
votes
5 answers
Shallow clone cannot fetch new commits/branches?
I have this:
git clone --depth=1 app
cd app
git fetch origin
git checkout a119b1076dd45a88a3609c4f7893ef3d82f9a4ee
but it says:
fatal: reference is not a tree: a119b1076dd45a88a3609c4f7893ef3d82f9a4ee
if I use the name of the branch:
git…

Alexander Mills
- 90,741
- 139
- 482
- 817
0
votes
1 answer
Permission denied in push or clone from cPanel remote
After Add Repository in cPanel and add remote with under command :
git remote add origin ssh://user@domain.com:3031/home/user/book
And use :
git push origin master
Enter ssh password
I get error message Permission denied, please try again.

Amin Hoseiny
- 70
- 4
0
votes
0 answers
Ignore a particular folder alone during the git clone
I am trying to checkout an ios app from Bit-Bucket and trying to clone the repo but it takes too much time since the POD files have been committed there in pod folder. Can I clone the ios repository without the pod folder?

Jithesh Nair
- 131
- 1
- 4
- 11
0
votes
1 answer
How to bypass .gitignore?
We are trying to set up a new staging server and are attempting a git clone. We would like to one-time pull files from our .gitignore (data files which should exist but don't need to be current). Is there a way to ignore .gitignore just this once?

MaKR
- 1,882
- 2
- 17
- 29
0
votes
0 answers
How to execute git-clone command from shell script (linux)
Need to execute git clone command from shell script
I tried to use the git clone command and it is working
I am able to execute the below command from the git-bash console to checkout the developer1_branch from my project
git clone --branch…

send2kvd
- 1
- 4
0
votes
1 answer
Faster alternative to git lfs clone from remote GitHub repositories?
Objective
I have a remote GitHub repositories, which uses git-lfs to hold large binary files.
I want others to be able to quickly download my code and data.
If speed can be enhanced, I don't expect others to necessarily version control their…

Packard CPW
- 339
- 1
- 5
- 16
0
votes
1 answer
Not able to clone into tensorflow models
I am trying to clone https://github.com/tensorflow/models.git using git bash on windows, upon clone i get the following:
Cloning into 'models'...
remote: Enumerating objects: 81, done.
remote: Counting objects: 100% (81/81), done.
remote:…

njain
- 33
- 1
- 7
0
votes
0 answers
Cannot git clone in Jenkins job
I'm trying to clone only the last commit but get the following error in the jenkins job:
+ git config credential.username ****
+ git config user.name jenkins
+ git config user.email jenkins@comp.com
+ git remote add origin…

xbmono
- 2,084
- 2
- 30
- 50
0
votes
1 answer
Copy single branch from git repo and make it independent
I have a git repo lets say "MyRepo", with following structure, branch1, branch2, tags, etc.
I want to create a new git repo, "EasyStart" that has the code and history of just branch2 and I don’t want anything else like branch1, tags etc from…

user1186700
- 35
- 5
0
votes
2 answers
How can I clone a specific branch and push changes to this branch only in GIT
How can I clone a specific branch and push changes to this branch only in GIT.
I know how to clone a specific branch but not sure to how to push to this branch only. As there is no chance of mistake so if someone can mention the series of step that…

LOrD_ARaGOrN
- 3,884
- 3
- 27
- 49
0
votes
2 answers
Get or copy external dependency folder in dockerfile while building image
I m building my project in dockerfile. While it is building it needs some external dlls in a external git repository folder. When I tried git clone in dockerfile I faced 504 unable access error.Git repositories in internal addres in company not…

captainblack
- 903
- 3
- 9
- 20
0
votes
0 answers
Unable to Clone/Pull Git Repository on Linux Server
I am trying to clone a git repository with URL: http://user@serverIP:port/RepositoryName on a Linux server and this is the output:
Cloning into 'RepositoryName'...
fatal: unable to access 'http://user@serverIP:port/RepositoryName/': couldn't…

Randa ElBehery
- 167
- 2
- 17