threads / discuss / 44970

git clone problem

Subject: git clone problem

## tl;dr

3 messages between Jan 25, 2017 and Jan 27, 2017.

replies: 2people: 2as markdown or json

Jordi Durban· Jan 25, 2017, 16:58 UTC · lore
Hi all! Not sure if that will reach the goal, but let's it a try.

I have a problem with the git clone command: when I try to clone a remote repository with the following:

git clone --recursive https://github.com/whatever.git
what I actually obtain is a copy of my own files in the current directory.
I mean:
In the current directory:
$ls

-rwxr-xr-x 1 1,6K oct 24 17:29 get_fasta.pl -rwxr-xr-x 1 1,6K set 5 13:05 script_clus_miRNA_c95.pl

$git clone --recursive https://github.com/whatever.git WHATEVER
$ls

-rwxr-xr-x 1 1,6K oct 24 17:29 get_fasta.pl -rwxr-xr-x 1 1,6K set 5 13:05 script_clus_miRNA_c95.pl

-rwxr-xr-x 1  1,6K set  5 13:05 WHATEVER
$ls WHATEVER

-rwxr-xr-x 1 1,6K oct 24 17:29 get_fasta.pl -rwxr-xr-x 1 1,6K set 5 13:05 script_clus_miRNA_c95.pl

I am really confused with that.
Any help will be appreciated. Thank you
Santiago Torres· Jan 25, 2017, 17:58 UTC · re: Jordi Durban · lore

Re: git clone problem

Hello, Jordi.
Hmm, it should've cloned in the "whatever" directory.

Can you post your git version/configs and maybe the output verbatim of the command when you run it?

If you can reproduce in an empty dictionary that'd be better
$ mkdir test && cd test
$ git clone --recursive https://github.com/...
$ ls 

Thanks, -Santiago

On Wed, Jan 25, 2017 at 05:58:58PM +0100, Jordi Durban wrote:
Show 36 quoted lines
> Hi all! Not sure if that will reach the goal, but let's it a try.
> 
> I have a problem with the git clone command: when I try to clone a remote
> repository with the following:
> 
> git clone --recursive https://github.com/whatever.git
> 
> what I actually obtain is a copy of my own files in the current directory.
> 
> I mean:
> 
> In the current directory:
> 
> $ls
> 
> -rwxr-xr-x 1  1,6K oct 24 17:29 get_fasta.pl
> -rwxr-xr-x 1  1,6K set  5 13:05 script_clus_miRNA_c95.pl
> 
> $git clone --recursive https://github.com/whatever.git WHATEVER
> 
> $ls
> 
> -rwxr-xr-x 1  1,6K oct 24 17:29 get_fasta.pl
> -rwxr-xr-x 1  1,6K set  5 13:05 script_clus_miRNA_c95.pl
> 
> -rwxr-xr-x 1  1,6K set  5 13:05 WHATEVER
> 
> $ls WHATEVER
> 
> -rwxr-xr-x 1  1,6K oct 24 17:29 get_fasta.pl
> -rwxr-xr-x 1  1,6K set  5 13:05 script_clus_miRNA_c95.pl
> 
> I am really confused with that.
> 
> Any help will be appreciated. Thank you
> 
Jordi Durban· Jan 27, 2017, 09:18 UTC · re: Santiago Torres · lore

Re: git clone problem

Hi Santiago!
Thank you for your answer.

What I meant was that the "WHATEVER" directory contained the same files as the current directory (i.e the directory where I typed "git clone"). Thus, no files from the remote repository were cloned. It seemed really weird. However I was playing around with git and finally I was able to clone remote files in a "test" location as you suggested.

Thank you very much.
El 25/01/17 a les 18:58, Santiago Torres ha escrit:
Show 55 quoted lines
> Hello, Jordi.
>
> Hmm, it should've cloned in the "whatever" directory.
>
> Can you post your git version/configs and maybe the output verbatim of
> the command when you run it?
>
> If you can reproduce in an empty dictionary that'd be better
>
> $ mkdir test && cd test
>
> $ git clone --recursive https://github.com/...
>
> $ ls
>
> Thanks,
> -Santiago
>
> On Wed, Jan 25, 2017 at 05:58:58PM +0100, Jordi Durban wrote:
>> Hi all! Not sure if that will reach the goal, but let's it a try.
>>
>> I have a problem with the git clone command: when I try to clone a remote
>> repository with the following:
>>
>> git clone --recursive https://github.com/whatever.git
>>
>> what I actually obtain is a copy of my own files in the current directory.
>>
>> I mean:
>>
>> In the current directory:
>>
>> $ls
>>
>> -rwxr-xr-x 1  1,6K oct 24 17:29 get_fasta.pl
>> -rwxr-xr-x 1  1,6K set  5 13:05 script_clus_miRNA_c95.pl
>>
>> $git clone --recursive https://github.com/whatever.git WHATEVER
>>
>> $ls
>>
>> -rwxr-xr-x 1  1,6K oct 24 17:29 get_fasta.pl
>> -rwxr-xr-x 1  1,6K set  5 13:05 script_clus_miRNA_c95.pl
>>
>> -rwxr-xr-x 1  1,6K set  5 13:05 WHATEVER
>>
>> $ls WHATEVER
>>
>> -rwxr-xr-x 1  1,6K oct 24 17:29 get_fasta.pl
>> -rwxr-xr-x 1  1,6K set  5 13:05 script_clus_miRNA_c95.pl
>>
>> I am really confused with that.
>>
>> Any help will be appreciated. Thank you
>>

← back to recent threads