Change the name of a git repository on the local machine
I have a git repository in a remote repository named site.git
. I want to create a local repository in a subdirectory site/www/
. When I simply clone the repository to the www
directory, I get site/www/site
.
How can I set up my local repository without the extra directory?
cd site/www
git clone site.git .
A similar question has already been asked and there is the perfect answer:
How do you clone a git repository into a specific folder?
I will give the simplest solution. Use the command:
git clone <repository> [<directory>]
Link to documentation: git-clone
链接地址: http://www.djcxy.com/p/90500.html上一篇: Git Clone在Windows 7上的默认目录
下一篇: 更改本地计算机上的git存储库的名称