cd /home/user/project
git init
添加远程仓库地址
git remote add origin https://github.com/user/repo.git
创建并切换到新分支
git checkout -b swift
添加文件到暂存区
git add .
git commit -m "swift训练评测"
git push -u origin swift ---force #首次
git push origin swift ---force #非首次