All of lore.kernel.org
 help / color / mirror / Atom feed
* Locating Git Clone
@ 2011-01-19  8:35 flebber
  2011-01-19  8:49 ` Alexey Shumkin
  2011-01-19 10:28 ` flebber
  0 siblings, 2 replies; 5+ messages in thread
From: flebber @ 2011-01-19  8:35 UTC (permalink / raw)
  To: git


I downloaded from git as I was following this walkthrough
http://www.grails.org/Installation.

So I issued the command 

    * git clone git://github.com/grails/grails-core.git

So that worked no problems, except I don't know where it cloned it to or how
I can move it. I had intended it to go to c:\grails.

Is there a way to find a locate something you have cloned?

Sayth
-- 
View this message in context: http://git.661346.n2.nabble.com/Locating-Git-Clone-tp5938712p5938712.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Locating Git Clone
  2011-01-19  8:35 Locating Git Clone flebber
@ 2011-01-19  8:49 ` Alexey Shumkin
  2011-01-19  8:57   ` flebber
  2011-01-19 10:28 ` flebber
  1 sibling, 1 reply; 5+ messages in thread
From: Alexey Shumkin @ 2011-01-19  8:49 UTC (permalink / raw)
  To: git

flebber <flebber.crue <at> gmail.com> writes:

> 
> 
> I downloaded from git as I was following this walkthrough
> http://www.grails.org/Installation.
> 
> So I issued the command 
> 
>     * git clone git://github.com/grails/grails-core.git
> 
> So that worked no problems, except I don't know where it cloned it to or how
> I can move it. I had intended it to go to c:\grails.
> 
> Is there a way to find a locate something you have cloned?
> 
> Sayth

'git clone URL [FOLDER]' clones repo to FOLDER if it is set
and to basename of URL to your current dir (say PWD) otherwise
I.e. PWD/grails-core (.git suffix is automatically removed) is this case

RTFM )) 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Locating Git Clone
  2011-01-19  8:49 ` Alexey Shumkin
@ 2011-01-19  8:57   ` flebber
  2011-01-19  9:13     ` Maaartin
  0 siblings, 1 reply; 5+ messages in thread
From: flebber @ 2011-01-19  8:57 UTC (permalink / raw)
  To: git


So how can I determine which folder is set for git? Should I have declared
the folder to clone to in the orginal clone command?

I tried using --get-dir and the man.

renshaw@RENSHAWRESIDENC ~
$ --git-dir
sh.exe": --git-dir: command not found

renshaw@RENSHAWRESIDENC ~
$ --git-dir=GIT_DIR
sh.exe": --git-dir=GIT_DIR: command not found

renshaw@RENSHAWRESIDENC ~
$ help mv
sh.exe": help: no help topics match `mv'.  Try `help help'
fo mv'.

renshaw@RENSHAWRESIDENC ~
$ man -k mv
sh.exe": man: command not found

renshaw@RENSHAWRESIDENC ~
$ info mv
sh.exe": info: command not found

renshaw@RENSHAWRESIDENC ~
$ mv grails-1.3.6 c:\grails
mv: cannot stat `grails-1.3.6': No such file or directory
-- 
View this message in context: http://git.661346.n2.nabble.com/Locating-Git-Clone-tp5938712p5938759.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Locating Git Clone
  2011-01-19  8:57   ` flebber
@ 2011-01-19  9:13     ` Maaartin
  0 siblings, 0 replies; 5+ messages in thread
From: Maaartin @ 2011-01-19  9:13 UTC (permalink / raw)
  To: git; +Cc: git

On 11-01-19 09:57, flebber wrote:
>
> So how can I determine which folder is set for git? Should I have declared
> the folder to clone to in the orginal clone command?
>
> I tried using --get-dir and the man.
>
> renshaw@RENSHAWRESIDENC ~
> $ --git-dir
> sh.exe": --git-dir: command not found

Wrong, it's a git option, i.e., you'd use something like
git --git-dir some_git_command ...

But you do NOT need it at all. Don't use it, it's a bit advanced. Just
change into the right directory before using any git command.

> renshaw@RENSHAWRESIDENC ~
> $ --git-dir=GIT_DIR
> sh.exe": --git-dir=GIT_DIR: command not found
>
> renshaw@RENSHAWRESIDENC ~
> $ help mv
> sh.exe": help: no help topics match `mv'.  Try `help help'
> fo mv'.
>
> renshaw@RENSHAWRESIDENC ~
> $ man -k mv
> sh.exe": man: command not found
>
> renshaw@RENSHAWRESIDENC ~
> $ info mv
> sh.exe": info: command not found

Forget it,
http://www.google.com/search?q=man+mv
is what I use instead. It's fast enough for me.

> renshaw@RENSHAWRESIDENC ~
> $ mv grails-1.3.6 c:\grails
> mv: cannot stat `grails-1.3.6': No such file or directory

You did
git clone git://github.com/grails/grails-core.git
so I'd suppose you could move it using
mv grails-core c:/grails
Do not use "\" as it's an escape character, you'd need to double it. But
use anything you like for moving it.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Locating Git Clone
  2011-01-19  8:35 Locating Git Clone flebber
  2011-01-19  8:49 ` Alexey Shumkin
@ 2011-01-19 10:28 ` flebber
  1 sibling, 0 replies; 5+ messages in thread
From: flebber @ 2011-01-19 10:28 UTC (permalink / raw)
  To: git


Thanks for the help.

Didn't realise at all I could navigate like a unix shell. All solved thanks.

renshaw@RENSHAWRESIDENC ~
$ ls
Application Data  IETldCache      PrintHood     Start Menu  dwhelper
Aptana Rubles     Local Settings  PrivacIE      Templates   grails-core
Cookies           My Documents    Recent        UserData    ntuser.dat.LOG
Favorites         NTUSER.DAT      SendTo        _viminfo    ntuser.ini
IECompatCache     NetHood         Settings.bin  desktop     workspace

renshaw@RENSHAWRESIDENC ~
$ mv grails "c:/grails-core"
mv: cannot stat `grails': No such file or directory

renshaw@RENSHAWRESIDENC ~
$ mv grails grails-core
mv: cannot stat `grails': No such file or directory

renshaw@RENSHAWRESIDENC ~
$ mv grails-core "c:/grails"
-- 
View this message in context: http://git.661346.n2.nabble.com/Locating-Git-Clone-tp5938712p5939039.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-19 10:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19  8:35 Locating Git Clone flebber
2011-01-19  8:49 ` Alexey Shumkin
2011-01-19  8:57   ` flebber
2011-01-19  9:13     ` Maaartin
2011-01-19 10:28 ` flebber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.