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.
git clone <git_url> <path_to_directory>
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.