Create a Repository
cd repo_locations
mkdir new_repo.git
git init --bare
ssh://user@hostaddress:/gitlocation/new_repo.git
Add remote repo
cd existing_dir
git init
nano .gitignore
git add .
git commit -m "initial commit"
git remote add origin <remote-repo-url>
git remote -v
git push -f origin master