Featured image of post Howto Clone Git Repository With Different Folder Name

Howto Clone Git Repository With Different Folder Name

Executing the command git clone creates a directory in my current folder named whatever, and drops the contents of the Git repository into that folder for Example if i clone flutter with different folder name

git clone <git_repo_url> <your_custom_directory_name>


git clone -b stable flutter_dev

Note: You don’t need to create your custom directory because it will create automatically

Another Option

We can use Another Option, for example if you need to clone in active directory

git clone .


We can use tips if need to duplicate or use same repo on different user, in my case i need to use flutter on different user without change the permission user, the alternative is clone another repo with different folder name :)

Licensed under CC BY-NC-SA 4.0
Last updated on Feb 10, 2022 00:50 +0700
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy