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 #非首次