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/

目录
相关文章
|
10月前
|
Linux iOS开发 MacOS
pnpm全局安装报错:Run “pnpm setup“ to create it automatically, or set the global-bin-dir setting, or the PN
pnpm全局安装报错:Run “pnpm setup“ to create it automatically, or set the global-bin-dir setting, or the PN
2579 0
|
3月前
|
Unix Linux 开发工具
git中有关old mode 100644、new mode 10075的问题解决小结
在 Git 中处理文件权限变更时,理解 `old mode 100644` 和 `new mode 100755` 的含义是解决问题的关键。通过确认变更的合理性、修改不必要的权限变更,以及配置 Git 忽略权限变更,可以有效管理文件权限,确保版本库的稳定性和一致性。
433 3
|
9月前
|
开发工具 git
*** Please tell me who you are.Run git config --global user.email “you@example.com“ git confi
*** Please tell me who you are.Run git config --global user.email “you@example.com“ git confi
|
10月前
|
JavaScript
npm报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
760 1
|
10月前
|
开发工具 git
If you are using the git profile, you need to set a Git URI in your configuration. If you are using
If you are using the git profile, you need to set a Git URI in your configuration. If you are using
265 0
|
10月前
|
JavaScript
报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
160 2
|
网络安全 开发工具 数据安全/隐私保护
git--配置文件、.gitignore
git--配置文件、.gitignore
|
开发工具 git
【Git】.ignore文件修改后如何更新,删除已提交文件等问题
【Git】.ignore文件修改后如何更新,删除已提交文件等问题
|
开发工具 git
git submodule update --init --recursive失败的处理办法
git submodule update --init --recursive失败的处理办法
2098 0
|
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