Git clone without project folder

I am using Git a lot these days. Git is arguably the best version control software out there especially for collaborative projects.

I rarely need to do anything complicated with Git so this simple guide to git commands is generally all I need.

The one thing I find I have to look up is how to clone a github project without enveloping the project files inside a project directory folder.

There are 2 ways to do this;

If there is no . directory in the directory you are trying to git clone into then this command should work for you.

git clone .

Notice the . at the end of that command.

The other way that typically works for me is the following;

git init
git remote add origin
git pull origin master

One thought on “Git clone without project folder

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s