[git-users] Re: How can I make a clone of the git repository subfolders?

2013-03-25 Thread Jeroen De Vlieger
$ cd /home/site.name/
$ git clone giturl www

see 

$ git help clone

On Saturday, March 23, 2013 12:52:45 PM UTC+1, Denis Porplenko wrote:

 I am doing a project in the local environment Denwer
 My local sites in the folder / home / site.name / www /
 Inside the folder www must be project file.
 I want to make a clone of the repository in this folder.
 When it does, it is created within a folder called repository, and inside 
 is a project file.
 How to do that would have been inside the www project files no folder 
 named Repository?

 On Saturday, March 23, 2013 1:48:09 PM UTC+2, Denis Porplenko wrote:




-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] Re: How can I make a clone of the git repository subfolders?

2013-03-25 Thread Konstantin Khomoutov
On Sat, 23 Mar 2013 04:52:45 -0700 (PDT)
Denis Porplenko denis.porple...@gmail.com wrote:

 I am doing a project in the local environment Denwer
 My local sites in the folder / home / site.name / www /
 Inside the folder www must be project file.
 I want to make a clone of the repository in this folder.
 When it does, it is created within a folder called repository, and
 inside is a project file.
 How to do that would have been inside the www project files no folder
 named Repository?

It's a bit hard to understand what you want.

If you have a pre-existing directory /home/site.name/www/ and just
want to fetch some project inside it, the best bet is to not use
`git clone` but do a bit of manual setup, and then fetch:

$ cd /home/site.name/www/
$ git init .
$ git remote add origin git_url
$ git fetch

The end result will be as if you did `git clone`.

If the current contents of the /home/site.name/www/ directory is
irrelevant, just use the fact `git clone` can be told where to put the
files.  So just do

$ git clone git_url /home/site.name/www/

In this case, the target directy either will be created (if it not yet
exists) or the project will be created in it (with the Git directory
created in it first).

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[git-users] Re: How can I make a clone of the git repository subfolders?

2013-03-23 Thread Denis Porplenko
I am doing a project in the local environment Denwer
My local sites in the folder / home / site.name / www /
Inside the folder www must be project file.
I want to make a clone of the repository in this folder.
When it does, it is created within a folder called repository, and inside 
is a project file.
How to do that would have been inside the www project files no folder named 
Repository?

On Saturday, March 23, 2013 1:48:09 PM UTC+2, Denis Porplenko wrote:




-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.