To Clone a Git Repository into specific folder or directory, use git clone followed by the git URL and the destination path of the folder where it should be stored.
Syntax:
git clone <git_url> <path_to_directory>
Example:
git clone https://github.com/similargeeks/main.git /home/folder1/
By executing the git branch
command, you may see which branch has been cloned currently.
git branch
Also Read: