Move local copy of git in Github for Mac

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?


Solution 1:

In Terminal:

mv /path1/foo /path2/foo

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

Solution 2:

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/