Skip to content

Commit

Permalink
update git wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
mzlogin committed Feb 1, 2020
1 parent c633ec8 commit 932b7e6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _wiki/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,18 @@ git config --global core.filemode false

参考:[How do I make Git ignore file mode (chmod) changes?](http://stackoverflow.com/questions/1580596/how-do-i-make-git-ignore-file-mode-chmod-changes)

### 忽略除某后缀名以外的所有文件

忽略除了 .c 后缀名以外的所有文件。

```
*
!*.c
!*/
```

gitignore 里,*、?、[] 可用作通配符。

### patch

将未添加到暂存区的更改生成 patch 文件:
Expand Down

0 comments on commit 932b7e6

Please sign in to comment.