git - Putting my project in github repo -


when created first project,i created repo (say project1) on github account , cloned in machine. , pushed whenever code in machine updated.

now created project- project2 in machine. tested it, created local repo using git init. want push project github. purpose created repo on github named project2. has .gitignore , readme.md files in it.

now, how add existing code this? when cd'd project2 directory , tried git push, error:

fatal: no destination configured push to. 

i tried git push project2

fatal: 'project2' not appear git repository fatal: remote end hung unexpectedly 

please me correct error

you need add new repository remote:

git remote add project2 git@github.com:nickname/project2.git 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -