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
profile marget 31st March 2023

It is incredibly strong, yet lightweight and flexible, making it the perfect choice for a variety of swimming pools. With its versatility and affordability, Sky Pool is the perfect way to create a unique and stylish swimming pool that will last for years to come. https://skyhighpools.com/best-above-ground-pool-heater/

 

Write a comment ...
Post comment
Cancel

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