github create a new warehouse
Then according to the command prompts to the next page
gitlab create a new warehouse
git init
git remote add origin git@***.***.**.**:user/project name.git
git add .
git commit -m "Initial commit"
git push -u origin master