Add initial project files including .gitattributes, .gitignore, and configuration for Obsidian

This commit is contained in:
2026-04-15 15:44:24 +08:00
commit 4816fc3894
7 changed files with 321 additions and 0 deletions

130
.gitattributes vendored Normal file
View File

@@ -0,0 +1,130 @@
# Define macros (only works in top-level gitattributes files)
[attr]lfs filter=lfs diff=lfs merge=lfs -text
# 3D models
*.collada lfs
*.dae lfs
*.dxf lfs
*.FBX lfs
*.fbx lfs
*.jas lfs
*.lws lfs
*.lxo lfs
*.obj lfs
*.ply lfs
*.skp lfs
*.stl lfs
*.stp lfs
*.usd lfs
*.usda lfs
*.usdc lfs
*.usdz lfs
*.glb lfs
*.gltf lfs
# Audio
*.aif lfs
*.aiff lfs
*.it lfs
*.mod lfs
*.mp3 lfs
*.ogg lfs
*.s3m lfs
*.wav lfs
*.xm lfs
# Video
*.asf lfs
*.avi lfs
*.flv lfs
*.mov lfs
*.mp4 lfs
*.mpeg lfs
*.mpg lfs
*.ogv lfs
*.wmv lfs
*.mkv lfs
# Images
*.bmp lfs
*.exr lfs
*.gif lfs
*.hdr lfs
*.iff lfs
*.jpeg lfs
*.jpg lfs
*.pict lfs
*.png lfs
*.psd lfs
*.tga lfs
*.tif lfs
*.tiff lfs
*.webp lfs
# Compressed Archive
*.7z lfs
*.bz2 lfs
*.gz lfs
*.rar lfs
*.tar lfs
*.zip lfs
# Compiled Dynamic Library
*.dll lfs
*.pdb lfs
*.so lfs
# Fonts
*.otf lfs
*.ttf lfs
*.woff lfs
*.woff2 lfs
# Executable/Installer
*.apk lfs
*.exe lfs
# Documents
*.pdf lfs
*.doc lfs
*.xls lfs
*.ppt lfs
*.docx lfs
*.xlsx lfs
*.pptx lfs
# Adobe
*.psd lfs
*.ai lfs
*.aep lfs
*.prproj lfs
*.spp lfs
# Zbrush
*.zbr lfs
*.zpr lfs
*.ztl lfs
*.c4d lfs
# Autodesk
*.max lfs
*.ma lfs
*.mb lfs
*.3dm lfs
*.3ds lfs
# Blender
*.blend lfs
*.blend1 lfs
*.c4d lfs
# Imaging
*.dicom lfs
*.dcm lfs
*.nii lfs
*.ome lfs
*.map lfs
*.mrc lfs
notes/assets/*.png -lfs
notes/assets/*.jpeg -lfs

14
.gitignore vendored Normal file
View File

@@ -0,0 +1,14 @@
# claude
.claudian
# obsidian setting
.obsidian/*
!.obsidian/snippets
!.obsidian/app.json
# tempary files
temp
sandbox.*
# blender
*.blend1

22
.obsidian/app.json vendored Normal file
View File

@@ -0,0 +1,22 @@
{
"showInlineTitle": false,
"useMarkdownLinks": true,
"pdfExportSettings": {
"pageSize": "Letter",
"landscape": false,
"margin": "0",
"downscalePercent": 100
},
"userIgnoreFilters": [
"notes/assets/"
],
"showUnsupportedFiles": true,
"attachmentFolderPath": "notes/assets",
"livePreview": true,
"showIndentGuide": false,
"alwaysUpdateLinks": true,
"openBehavior": "file:OMOOSPACE",
"newFileLocation": "folder",
"newFileFolderPath": "Notes",
"newLinkFormat": "absolute"
}

30
.obsidian/snippets/omoolab.css vendored Normal file
View File

@@ -0,0 +1,30 @@
/* not show label in canvas */
.canvas-node-label {
display: none;
}
.canvas-node-container:hover + .canvas-node-label {
display: inherit;
}
/* image caption */
.image-embed {
flex-wrap: wrap;
}
.image-embed[alt]:after {
content: attr(alt);
display: block;
padding-bottom: 12px;
line-height: 2.0;
font-style: italic;
color: var(--text-faint);
text-align: center;
width: 100%;
}
/* fix image in canvas */
.image-embed {
padding: 0;
}

1
README.md Normal file
View File

@@ -0,0 +1 @@
# 偶魔数字 OmooLab

76
notes/git.md Normal file
View File

@@ -0,0 +1,76 @@
## 从自己的分支开始
1. 拉取分支
```bash
git clone [repo.git]
cd [repo-name]
```
2. 创建自己的分支
```bash
git checkout -b [your-name]/[do-something] # 比如 manan/dev
```
3. 首次推送分支到远程
```bash
git push -u origin [branch-name]
```
4. 本地一些改动
```bash
git add .
git commit -m [message]
```
5. 推送改动
```bash
git push
```
## 合并到`main`
确保自己的东西和`main`别差太远了,合并前,先从`main`来取并合并到自己的分支
```bash
git checkout main
git pull # origin main
git checkout [branch-name] # 回到特征分支
git merge main
```
或者直接
```bash
# 确保在特征分支
git pull origin main
```
如果冲突,会进入`([branch-name]|MERGING)` 状态
解决完冲突后,继续
```bash
git merge --continue
```
大文件处理完合并后,变成指针文件,这时候用下面指令拉回
```bash
git lfs pull
```
或者退出,不解决
```bash
git merge --abort
```
取消曾经追踪过的文件,但不删除文件
```bash
git rm --cached [file]
```

48
notes/starter.md Normal file
View File

@@ -0,0 +1,48 @@
1. 安装 Git
打开 windows powershell,运行
```powershell
winget install Git.Git
```
安装完毕后,所有终端我们都选择 Git Bash
设置本设备 git 的身份信息
```bash
git config --global user.name [your-name]
git config --global user.email  [your-email]
```
初始化 lfs 以获取对大文件的支持
```bash
git lfs install
```
2. 安装 VS Code
```bash
winget install vscode
```
4. 安装 Volta
```bash
winget install Volta.Volta
```
重启终端,安装 node
```bash
volta install node
```
5. 安装 claude code
```bash
volta install @anthropic-ai/claude-code
```
(可选)安装 cc-switch
https://github.com/farion1231/cc-switch/releases
(可选)安装 vscode claude 插件
https://code.claude.com/docs/zh-CN/vs-code
(可选)安装 obsidian claude 插件
https://github.com/YishenTu/claudian/releases