mkdir -p ~/Documents/Github/swift-demo
cd ~/Documents/Github/swift-demo
git init
git remote add origin [email protected]:ynthm/swift-demo.git
# 非私人终端提交请设置
git config user.name "Ynthm Wang"
git config user.email "[email protected]"
git add .
git commit -m 'Initial swift-demo'
git push -u origin master
SPM 暂时不支持 iOS