Today I Learned

hashrocket A Hashrocket project

Clone at Git Repo to a Different Directory

Today I learned that you can clone a Git repository to a directory with a different name than the repository name.

Here's the command:

$ git clone https://github.com/cool_user/codez.git ~/codez-v2

My use case was cloning the same repo a bunch of times, making changes to the Git history in each, and not wanting to delete the directories as I went along.

See More #git TILs