I have cloned the source of a git repository to /path1/foo/, but I want move the local copy to a new location say /path2/foo/.

How do I do this?

link|improve this question

feedback

2 Answers

In Terminal:

mv /path1/foo /path2/foo

Or, in Finder: drag and drop the git repo folder from one place to another.

link|improve this answer
Then it gets deleted form Github – Tyilo Aug 1 '11 at 17:52
feedback
up vote 1 down vote accepted

Working solution:

  1. Clone foo from github to /path2/foo/ in Github for Mac
  2. If local version is different from the latest at github, move /path1/foo/ to /path2/foo/
link|improve this answer
In short: a repository lives in a plain old directory and doesn't know or expect or require anything at all about where it sits in the filesystem. Move it, rename it, whatever. git will track changes INSIDE the repo directory, but not changes TO the repo directory itself. – Dan Ray Aug 16 '11 at 18:19
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.