How to clone a project from git without project folder

There are two options to do the same

1. If there is no (.) dot  directory in the current folder then we can simply put (.) dot at the end 

git clone https://github.com/letsknowit/projectrepo.git .

2. We can also  setup a new repo and then the tracking remote and branch

git init .
git remote add origin https://github.com/letsknowit/projectrepo.git
git fetch origin
git checkout master

0   0
Himanshi Saini

List Your Business

Improve Your Business Visibility

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site