mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-03-15 11:21:45 +00:00
gitignore: allow gitignore to ignore most dot file
Nowadays, most of the editor use files or directories begin with dot to store some settings. So let git ignore these files and directories to reduce potential mistakes. Add dot match to ignore any editor file and there are two exceptions: - .gitignore - .clang-format Signed-off-by: Inochi Amaoto <inochiama@outlook.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
c2e602707d
commit
f536e0b02e
1 changed files with 7 additions and 1 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -1,3 +1,10 @@
|
|||
# ignore anything begin with dot
|
||||
.*
|
||||
|
||||
# exceptions we need even begin with dot
|
||||
!.clang-format
|
||||
!.gitignore
|
||||
|
||||
# Object files
|
||||
*.o
|
||||
*.a
|
||||
|
@ -10,4 +17,3 @@ install/
|
|||
# Development friendly files
|
||||
tags
|
||||
cscope*
|
||||
*.swp
|
||||
|
|
Loading…
Add table
Reference in a new issue