Skip to content

Commit

Permalink
Delete and ignore (most) test-vault/.obsidian files in git. (blacks…
Browse files Browse the repository at this point in the history
…mithgu#1989)

* Remove .obsidian files that aren't needed

* Add folder in test-vault not to be tracked by git

* Update .gitignore

Now ignores .obsidian files, except some which don't change often.
Also ignores the test-vault/untracked folder.

---------

Co-authored-by: Quinn <[email protected]>
  • Loading branch information
NotNotQuinn and Quinn authored Sep 15, 2023
1 parent bb34c6a commit c6cc390
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 24 deletions.
18 changes: 14 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@ node_modules
# build
build/

test-vault/.obsidian/workspace
test-vault/.obsidian/plugins/dataview/*.css
test-vault/.obsidian/plugins/dataview/*.js
test-vault/.obsidian/plugins/dataview/*.json
# Ignore .obsidian
# No one will commit these files, they just spam 'git status'
test-vault/.obsidian/*
# Tells obsidian what plugins are enabled
!test-vault/.obsidian/community-plugins.json
# This plugin should still be tracked by git.
# It might need updated at some point
!test-vault/.obsidian/hot-reload-master/*

# Don't track this folder. For random things to try.
# If its import to test though, add it somewhere where other
# people can test it too.
test-vault/untracked/*
!test-vault/untracked/README.md

lib
yarn.lock
1 change: 0 additions & 1 deletion test-vault/.obsidian/app.json

This file was deleted.

4 changes: 0 additions & 4 deletions test-vault/.obsidian/appearance.json

This file was deleted.

14 changes: 0 additions & 14 deletions test-vault/.obsidian/core-plugins.json

This file was deleted.

1 change: 0 additions & 1 deletion test-vault/.obsidian/hotkeys.json

This file was deleted.

3 changes: 3 additions & 0 deletions test-vault/untracked/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Git will not track files in this folder. (except this one)

Feel free to write whatever for anything you want to try. Git won't see it and it won't clog up your `git status`. But if its an important thing to test, maybe include it somewhere where other people can test it too. Thanks :)

0 comments on commit c6cc390

Please sign in to comment.