µVision 用 .gitignore
µVision 用の除外ルール 28 件。そのままリポジトリにコピーして使えます。
組み込み開発用のIDE
µVision 用 .gitignore の完全版
# LFGitignore によって生成 - https://lfgitignore.com
# 作成日:2026-10-31 21:50:56 UTC
# 技術:µVision
### µVision ###
*.uvguix.*
# オブジェクトファイル
*.o
*.uvgui.*
*.i
*.lst
# オブジェクトファイル
*.obj
*.elf
*.m51
*.m66
*.map
*.axf
*.b[0-2][0-9]
*.b3[0-1]
# バックアップファイル
*.bak
*.build_log.htm
*.crf
*.d
*.dep
*.htm
*.iex
*.lnp
*.sbr
*.bin
*.h86
# 16進ダンプファイル
*.hex
.bat
.ini
JLinkLog.txt
µVision のルールで除外されるもの
以下の各パターンと、.gitignore に含める理由を説明します。
一般的な
| パターン |
除外対象 |
*.uvguix.* |
µVision 5 および µVision 4 プロジェクト画面レイアウト ファイル |
*.uvgui.* |
一般的な |
オブジェクトファイル
| パターン |
除外対象 |
*.o |
オブジェクトファイル |
*.obj |
オブジェクトファイル |
*.elf |
オブジェクトファイル |
リスティングファイル
| パターン |
除外対象 |
*.i |
リスティングファイル |
*.lst |
リスティングファイル |
*.m51 |
リスティングファイル |
*.m66 |
リスティングファイル |
*.map |
リスティングファイル |
オブジェクトファイル
| パターン |
除外対象 |
*.axf |
オブジェクトファイル |
*.b[0-2][0-9] |
オブジェクトファイル |
*.b3[0-1] |
オブジェクトファイル |
*.bak |
バックアップファイル |
*.build_log.htm |
オブジェクトファイル |
*.crf |
オブジェクトファイル |
*.d |
オブジェクトファイル |
*.dep |
オブジェクトファイル |
*.htm |
オブジェクトファイル |
*.iex |
オブジェクトファイル |
*.lnp |
オブジェクトファイル |
*.sbr |
オブジェクトファイル |
ファームウェアファイル
| パターン |
除外対象 |
*.bin |
ファームウェアファイル |
*.h86 |
ファームウェアファイル |
*.hex |
16進ダンプファイル |
JLinkファイル
| パターン |
除外対象 |
JLinkLog.txt |
JLinkファイル |
この µVision 用 .gitignore の使い方
- 上の µVision 用ルールをコピーするか、ファイルを直接ダウンロードしてください。
- Git リポジトリのルートに .gitignore という名前のファイルを作り、ルールを貼り付けます。
- 対象のファイルがすでに追跡されている場合は、git rm -r --cached . を実行して再度コミットしてください。Git の除外ルールは未追跡のファイルにのみ適用されます。
- チーム全員で同じルールを共有できるよう、.gitignore をコミットします。