Fetch would be better, as it would pull down all branches and tags like
clone does.  You would them need to "merge" origin/master to move your local
master to the correct place.

On Thu, Apr 2, 2009 at 10:34 PM, Victor Hugo Borja <[email protected]>wrote:

>
> Maybe this can help..
>
> cd mydir
> git init
> git remote add origin git://github.com/your/repo.git
> git pull origin
>
> On Mar 31, 5:21 pm, Tekkub <[email protected]> wrote:
> > There is none that I am aware of, no.  I'd just run the clone, then move
> the
> > contents of the repo up one level.
> >
> > On Tue, Mar 31, 2009 at 5:09 PM, Jason H
> > <[email protected]>wrote:
> >
> >
> >
> >
> >
> > > so there is no way to clone into the directory I am pathed to? What if
> > > I have no option to go up one level?
> >
> > > On Mar 30, 9:52 pm, Tekkub <[email protected]> wrote:
> > > > So long as you move the .git folder in-tact, it really doesn't matter
> > > where
> > > > it is.  If you have a working copy as well (which is the default when
> you
> > > > clone) then it's best you move those files too of course, but not
> > > strictly
> > > > required as git can recreate the working copy from the contents of
> the
> > > .git
> > > > folder.
> > > >     Tekkub
> > > >     GitHub General Support
> > > >    http://support.github.com/
> > > >     Join us on IRC: #github on freenode.net
> > > >     Discussion group: [email protected]
> >
> > > > On Mon, Mar 30, 2009 at 10:47 PM, Jason H <
> > > [email protected]
> >
> > > > > wrote:
> >
> > > > > but when you move it your break the git connection correct?
> >
> > > > > I use a CMS that I am trying to keep one system up to date and
> fetch
> > > > > it when I update the repo/version of the cms.
> >
> > > > > On Mar 30, 9:42 pm, Tekkub <[email protected]> wrote:
> > > > > > I think it will always clone to a subpath of your current
> location.
> > >  You
> > > > > > could, of course, just move everything after the clone is
> finished.
> > > > > >     Tekkub
> > > > > >     GitHub General Support
> > > > > >    http://support.github.com/
> > > > > >     Join us on IRC: #github on freenode.net
> > > > > >     Discussion group: [email protected]
> >
> > > > > > On Mon, Mar 30, 2009 at 10:36 PM, Jason H <
> > > > > [email protected]
> >
> > > > > > > wrote:
> >
> > > > > > > I try to clone it into the current directory but it creates a
> new
> > > > > > > one...
> >
> > > > > > > So if I do this:
> >
> > > > > > > cd /Desktop
> > > > > > > git clone [email protected]:username/git-repo.git
> >
> > > > > > > It creates a new directory for the repo, how would I path to
> the
> > > > > > > desktop an clone it in that directory?
> >
> > > > > > > On Mar 30, 9:22 pm, Dilip M <[email protected]> wrote:
> > > > > > > > On Tue, Mar 31, 2009 at 6:32 AM,  <
> > > [email protected]
> >
> > > > > > > wrote:
> > > > > > > > > is there a way to clone a repo into the directory you are
> > > currently
> > > > > > > > > pathed to?
> >
> > > > > > > > You can clone it anywhere you want...Provided you have
> READ-Write
> > > > > > > > access to that directory.
> >
> > > > > > > > -- Dilip
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to