Git an existing project -
i missing something. attempting use git existing project , our team working it. following did:
ssh user@domain.com cd /directory/of/gitproject git init git add . git commit 'first commit'
i thought bring local, exit ssh connection, local: git clone user@domain.com/directory/of/gitproject/.git mylocalgit
when this, not appear git repository.
.git
not repository; directory contains is. want clone that directory, not .git
.
by way, when creating repository on server want pull/push to/from, should pass --bare
git init
. make first commit local machine, not on server.
Comments
Post a Comment