Search code examples
gitgit-clone

Change Folder Name During Clone


When I clone something, it creates a folder with the same name as the app on my computer.

For example, doing this clone creates a long "sign-in-with-twitter" folder:

git clone https://github.com/sferik/sign-in-with-twitter.git

Is there a way to specify a custom name?


Solution

  • You can do this:

    git clone https://github.com/sferik/sign-in-with-twitter.git signin
    
    # or
    
    git clone [email protected]:sferik/sign-in-with-twitter.git signin
    

    refer to the manual here