connect local project with git repository

 

How can i connect my working directory with git


Answer
 
cd existing_folder
git init
git remote add origin http://simplifyingwork.in/zwork/zobs.git
git add .
git commit -m "Initial commit"
git push -u origin master