#初始化
git init
#关联远程仓库
git remote add origin [email protected]:idiv/[project].git
#先从远程仓库拉取
git pull --rebase origin master
#提交
git push -u origin master
#-------------------------------------------------------------
#强制合并
git pull origin master --allow-unrelated-histories
#提交所有文件
git add .
git commit -m 'first commit'
git push -u origin [branch_name]
标签:origin,git,仓库,add,master,远程 From: https://www.cnblogs.com/huoziqi/p/17622142.html