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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -