在Mac显示.gitignore文件:command+shift+.
vim /Users/sam/miyan/openfoodCode/opf-ios-business/.gitignore
忽略OFStore/Info.plist文件
## 先简单配置一下,只忽略DS_Store
Last login: Wed Apr 24 11:00:19 on ttys010
huanglongshandeMacBook-Pro:~ sam$ cd /Users/sam/miyan/openfoodCode/opf-ios-buiness
huanglongshandeMacBook-Pro:opf-ios-business sam$ open .
huanglongshandeMacBook-Pro:opf-ios-business sam$ vim /Users/sam/miyan/openfoodCode/opf-ios-business/.gitignore
huanglongshandeMacBook-Pro:opf-ios-business sam$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: OFStore/Info.beta.plist
new file: OFStore/Info.stable.plist
new file: OFStore/Info.test.plist
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .gitignore
modified: OFStore.xcodeproj/project.pbxproj
## 先简单配置一下,只忽略DS_Store
*.DS_Store
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## Build generated
build/
DerivedData/
## Various settings
*.xcuserstate
*.DS_Store
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
OFStore/Info.plist
"~/miyan/openfoodCode/opf-ios-business/.gitignore" 71L, 1546C
shift+command+. 查看隐藏文件
git status
git add .gitignore
删除缓存
git rm --cached OFStore/Info.plist