开源许可证 选: MIT
1. 在开源中国上 创建项目 网址 : https://git.oschina.net/ . 并clone到本地
2. 如果电脑是第一次是使用开源中国作为 代码库 需要 按照开源中国上的步骤 生成 秘钥.
3. swift, 现在在开源中国的 gitignore上还没有, 从github上可以下载到最新的gitignore : https://github.com/github/gitignore 下载
4. 操作
1> 用终端, cd到 项目目录下.
2> 将刚才下载的文件的swift.gitignore拷贝到项目文件下, 改名为 .gitignore 终端输入 : cp 刚才从github上下载的文件的地址/Swift.gitignore .gitignore
cp 后面有一个空格, Swift.gitignore后面有一个空格
5. 终端输入 : git add . 将刚才拷贝进来的.gitignore提交
6. git commit -m ""
7 git push