Skip to content
 
 

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

gitignore

A curated repo that merges official templates from github/gitignore. Current combination: Unity + Python.

Files

File Description
unity_python.gitignore Merged Unity / Python templates, split into Section 1: Unity / Section 2: Python banners; each banner carries a ?raw=true source link for direct download
scripts/merge_gitignores.py Merge script: fetches both official templates from main and regenerates the combined file
.github/workflows/sync-upstream.yml GitHub Action that keeps the combined file in sync (daily cron + fork-sync push trigger)

Auto sync

  • Triggers: schedule once a day (21:17 UTC) + manual workflow_dispatch
  • Flow: fetch official Unity.gitignore / Python.gitignore → run the merge script → compare against the committed file
  • Change detection is content-based: upstream commits that do not touch these two files produce no empty commit; any real change is committed and pushed as agent
  • The cron pulls upstream content directly via raw.githubusercontent.com, so it works regardless of fork sync; this fork's master shares no history with upstream, so GitHub "Sync fork" cannot update it anyway
  • Scheduled workflows only run from the repository's default branch: keep master as default in Settings → Branches, or the cron will silently stop

Run manually

python scripts/merge_gitignores.py          # regenerate unity_python.gitignore
python scripts/merge_gitignores.py --check  # check only, exit 1 on difference

Notes

  • GitHub disables scheduled workflows after 60 days of repository inactivity; re-enable manually if that happens
  • The workflow declares permissions: contents: write; if org/repo policy restricts workflows to read-only, allow read/write under Settings → Actions → General → Workflow permissions

About

A collection of useful .gitignore templates

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages