gitignore_global设置

简介: gitignore_global设置

defaults write com.apple.finder AppleShowAllFiles -bool true; killall Finder //显示隐藏文件

defaults write com.apple.finder AppleShowAllFiles -bool false; killall Finder //隐藏隐藏文件

早期的OS X(10.6~10.8)系统可以使用如下两条命令来开始或者关闭系统隐藏文件的显示:

defaults write com.apple.Finder AppleShowAllFiles Yes && killall Finder //显示隐藏文件

defaults write com.apple.Finder AppleShowAllFiles No && killall Finder //不显示隐藏文件

当升级到OS X 10.9 Mavericks版本之后,这两条命令需要做一些修改,变成了如下命令:

defaults write com.apple.finder AppleShowAllFiles Yes && killall Finder //显示隐藏文件

defaults write com.apple.finder AppleShowAllFiles No && killall Finder //不显示隐藏文件

具体操作是:打开一个Finder 同时按住commamd+shift+G,输入~/.gitignore_global,然后前往,打开文件,将下面的文字复制粘贴进去保存即可

OS X

.DS_Store

Xcode

build/

*.pbxuser

!default.pbxuser

*.mode1v3

!default.mode1v3

*.mode2v3

!default.mode2v3

*.perspectivev3

!default.perspectivev3

xcuserdata/

*.xccheckout

profile

*.moved-aside

DerivedData

*.hmap

*.ipa

Bundler

.bundle

Carthage

We recommend against adding the Pods directory to your .gitignore. However

you should judge for yourself, the pros and cons are mentioned at:

http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control

Note: if you ignore the Pods directory, make sure to uncomment

pod install in .travis.yml

#

Pods/

目录
相关文章
|
缓存 开发工具 git
报错:Git上传代码报错 will not add file alias already exists in index
报错:Git上传代码报错 will not add file alias already exists in index
486 0
|
开发工具 git
解决报错:Remove untracked files, stash or commit any changes, and try again
解决报错:Remove untracked files, stash or commit any changes, and try again
123 1
|
9月前
解决 idea中SVN一直 looking for xxx working copy root 或者performing vcs refresh
解决 idea中SVN一直 looking for xxx working copy root 或者performing vcs refresh
295 0
|
开发工具 git
git submodule update --init --recursive失败的处理办法
git submodule update --init --recursive失败的处理办法
1930 0
|
开发工具 git
Git冲突:# If this is not correct, please remove the file # .git/MERGE_HEAD
Git冲突:# If this is not correct, please remove the file # .git/MERGE_HEAD
138 0
Git冲突:# If this is not correct, please remove the file # .git/MERGE_HEAD
SVN更新有问题 svn The working copy at‘ ‘ is too old
SVN更新有问题 svn The working copy at‘ ‘ is too old
198 0
SVN更新有问题 svn The working copy at‘ ‘ is too old
|
Python
subversion SVN global ignore pattern
  *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ #*# .#* .*.swp .DS_Store */bin */obj */Release */Debug *.
867 0
|
缓存 开发工具 git
Git .ignore 文件规则不生效
Git .ignore 文件规则不生效
185 0
Git .ignore 文件规则不生效
|
存储 Shell 网络安全
|
Shell 开发工具 git
GIT03_初始化init、查看状态status、添加add、删除rm、commit提交、历史版本reflog、忽略文件gitignore(二)
③. 初始化坏境配置 init ④. 查看文件状态 status ⑤. 添加到暂存区、撤回到工作目录 add|reset
178 0
GIT03_初始化init、查看状态status、添加add、删除rm、commit提交、历史版本reflog、忽略文件gitignore(二)

热门文章

最新文章