File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ layout : post
3+ title : Mac 文件的隐藏与显示
4+ subtitle : 使用终端 显示/隐藏 文件
5+ date : 2017-02-22
6+ author : BY
7+ header-img : img/post-bg-debug.png
8+ catalog : true
9+ tags :
10+ - Mac
11+ - 终端
12+ ---
13+
14+ > 让 Finder 显示隐藏文件和文件夹
15+
16+ #### 显示
17+
18+ $ defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
19+
20+ #### 隐藏
21+
22+ $ defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder
Original file line number Diff line number Diff line change 1+ ---
2+ layout : post
3+ title : 使用 .gitignore 忽略 Git 仓库中的文件
4+ subtitle : .gitignore 文件在Git中的使用
5+ date : 2017-02-22
6+ author : BY
7+ header-img : img/post-bg-debug.png
8+ catalog : true
9+ tags :
10+ - Mac
11+ - 终端
12+ - Git
13+ - Github
14+ ---
15+
16+
17+ > 使用 ` .gitignore ` 文件忽略制定文件
18+
19+ # .gitignore
20+
21+ 打开 ** SourceTree** 仓库设置可以发现 仓库忽略列表选项中默认有个 ` .gitignore ` ,用来忽略你不想 ` Commit ` 到仓库中的文件,这对于多人合作开发意义重大~
22+
23+ ![ ] ( https://ww1.sinaimg.cn/large/006tNbRwgy1fd07hwkuy5j30vq080t9x.jpg )
24+
25+ # 下载地址:
26+
27+ git@github.com:github/gitignore.git
28+ or
29+
30+ https://github.com/github/gitignore.git
31+
32+ 与 Xcode 相关的三个文件
33+
34+ - Xcode.gitignore
35+ - Objective-C.gitignore
36+ - Swift.gitignore
37+
38+ ` Xcode.gitignore ` 忽略 ` Xcode ` 配置信息,如操作记录,默认打开窗口等
39+
40+ 其他两个在 ` Xcode.gitignore ` 基础上针对不同的语言进行忽略
41+
42+ # 使用方法:
43+
44+ 1 . 将文件拖入项目根目录
45+
46+ 
47+
48+ 2 . 隐藏文件名
49+
50+ $ mv Swift.gitignore .gittignore
51+
52+ 3 . 忽略特定的文件/文件夹
53+
54+ 将文件名/文件夹名 添加到 `.gittignore` 文件中即可
55+
You can’t perform that action at this time.
0 commit comments