步骤:
1 bob:~ apple$ cd /Users/apple/Desktop/FS13-602
2 bob:FS13-602 apple$ git init
3 bob:FS13-602 apple$ git add -A
4
bob:FS13-602 apple$ git commit -m "first"
5 git push -u origin master
报错:
remote: error: File FS13/PayPalMobile/libEaseMobClientSDK.a is 184.20 MB; this exceeds GitHub's file size limit of 100.00 MB
创建 .gitignore文件,写
*.libEaseMobClientSDK.a
6
bob:FS13-602 apple$ git rm --cached FS13/PayPalMobile/libEaseMobClientSDK.a
rm 'FS13/PayPalMobile/libEaseMobClientSDK.a'
7
bob:FS13-602 apple$ git commit --amend -CHEAD
8
bob:FS13-602 apple$ touch README.md
9
bob:FS13-602 apple$ git add README.md
10
bob:FS13-602 apple$ git commit -m "first commit"
11 git remote add origin git@github.com:liuboliu/FS13-60LAO.git
12 bob:FS13-602 apple$ git push -u origin master