git首次提交远程仓库

以bitbucket远程仓库提交为例(gitlab也适用),演示git push remote repository过程。
--shell-*cd /path/to/your/repo
git init .
git commit -m"first commit"
git remote add origin git@bitbucket.org:xieyonghui.com/demo.git
或者
git remote add origin https://xieyonghui@bitbucket.org/xieyonghui.com/demo.git
git pull origin master --allow-unrelated-histories
git push -u origin master