git Clone or git Pull

git Clone or git Pull

Truth is, right now, I don't know.

**I need to review this page....not sure if it's helpful or not 3rd July 2019

However the problem I had today was git clone creates the directory of the project in the place you are cloning to.

For example: (notice the '.' at the end)

You need the directory to be completely empty to do this successfully. But I have the .well-known dir and the .git dir

			
				

:~/path/to/www$ git clone git@github.com:username/projectName.git .

This will cause you to get

/path/to/www/projectName/index.php when what you really want is

/path/to/www/index.php


So what I did today is

			
				

:~/path/to/www$ git pull git@github.com:username/projectName.git