I want to push my github.com/username/reponame
to my live webserver domain.com/demo/
. I've managed to correctly push the code to that location, but it's including the top-level directory of my repo, putting the files into domain.com/demo/reponame/
.
I'm very new to Git and SSH, and I'm not understanding how I should push/pull so that the top level folder of my GitHub repo isn't included.
Answer: had to change git clone git@github.com:username/reponame.git
to git clone git@github.com:username/reponame.git .
- that period at the end ignores the top level folder.