On Fri, Apr 3, 2009 at 10:07 AM, Tekkub <tek...@gmail.com> wrote: > Fetch would be better, as it would pull down all branches and tags like
pull will do that too, although the exact sequence described below does not actually do a merge with your (currently empty) master, and you still have to do this: > 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 <vic.bo...@gmail.com> > 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 <tek...@gmail.com> 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 >> > <jason.hudn...@invokedprojects.com>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 <tek...@gmail.com> 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: github@googlegroups.com >> > >> > > > On Mon, Mar 30, 2009 at 10:47 PM, Jason H < >> > > jason.hudn...@invokedprojects.com >> > >> > > > > 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 <tek...@gmail.com> 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: github@googlegroups.com >> > >> > > > > > On Mon, Mar 30, 2009 at 10:36 PM, Jason H < >> > > > > jason.hudn...@invokedprojects.com >> > >> > > > > > > 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 g...@github.com: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 <dilip...@gmail.com> wrote: >> > > > > > > > On Tue, Mar 31, 2009 at 6:32 AM, < >> > > jason.hudn...@invokedprojects.com >> > >> > > > > > > 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 github@googlegroups.com To unsubscribe from this group, send email to github+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/github?hl=en -~----------~----~----~----~------~----~------~--~---