while uploading local git repository to online private git repository you can use the following way;
cd /projectFilePath
git init
git remote add origin https://your .git repo url
git add .
git commit -m "initial commit"
git push origin master
cd /projectFilePath
git init
git remote add origin https://your .git repo url
git add .
git commit -m "initial commit"
git push origin master