Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 12ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
i

ignore

Recently created Least recently created Recently updated Least recently updated

timmy / Git 忽略規則配置

Last active 6 hours ago config files gitignore ignore

設定 Git 忽略不需版本控制的檔案,同時追蹤指定例外檔案,優化版本管理流程。

0 0 0 2
1 # 忽略所有的 .log 文件
2 *.log
3
4 # 但是要追踪特定的 log 文件
5 projectX.log
6
7 # 忽略所有 .txt 文件
8 *.txt
9
10 # 但是不要忽略 doc/notes.txt,尽管它也在 *.txt 的范围内