Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6bd1948

Browse files
committed
add posts
1 parent 31cff87 commit 6bd1948

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
[email protected]: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+
![](https://ww3.sinaimg.cn/large/006tNbRwgy1fd07evew4jj30jy0aidhs.jpg)
47+
48+
2. 隐藏文件名
49+
50+
$ mv Swift.gitignore .gittignore
51+
52+
3. 忽略特定的文件/文件夹
53+
54+
将文件名/文件夹名 添加到 `.gittignore` 文件中即可
55+

0 commit comments

Comments
 (0)