Decorative image frame

Fulcrum

「摄于2016年8月12日|Nikon D90」

Fulcrum

Git避免提交.DS_Store

今天发现在macOS上用Git提交时,会提示.DS_Store文件没有提交.

1
2
3
4
5
6
7
% git status
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
.DS_Store

nothing added to commit but untracked files present (use "git add" to track)

.DS_Store是macOS保存文件夹的自定义属性的隐藏文件,并没有什么用,但我也不太想禁止这个文件的生成. 所以可以用.gitignore文件配置需要忽略的文件.

Read More...