Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

In Terminal:

mv /path1/foo /path2/foo

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

share|improve this answer
    
Then it gets deleted form Github –  Tyilo Aug 1 '11 at 17:52
up vote 2 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/
share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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