Here are the docs for git clone


Normally we clone a repo like so

git clone x

however, I want to rename the repository locally, so it would be something akin to

git clone x as y

looking at the docs, it's not clear if this is possible or kosher, does anyone know how to do this?

it looks like this works:

git clone x y

according to the docs:




Yes it is, it's the very last parameter (directory) in the documentation.

git clone your.reporitory yourownname

Other than that, there is nothing you need to do. A git-repository does not have a name other than the directory it resides in.


That would be renaming the repo folder. That is, after cloning you will do:

mv x y

Your Answer

