How to init Local project and push it to git server

  1. Create local project
git init
  1. Create a repositories on git server
https://mygitserver/my/myproject.git
  1. Add remote origin
git remote add origin https://mygitserver/my/myproject.git
  1. Pull remote master branche and merge it with local master branche.
git pull origin master:master
  1. Push local branch to remote
git push -u origin master
  1. Add local project and push it on git server
git add -A
git commit -m "Inistal at first"
git push --set-upstream origin master