To clone a repository into our current working directory without project folder, we can use the following command:
$ git init .
Syntax:
$ git remote add origin <repository-url>
Example:
$ git remote add origin git@github.com:username/repo.git
$ git fetch origin
$ git checkout master
Cloning project repository into an existing empty directory
$ git clone <repository-url> <existing-directory-path>
Cloning project repository into the current working directory
$ git clone <repository-url> .