Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repositories: Guideline for .gitattributes #12

Open
andreashaerter opened this issue Mar 28, 2024 · 0 comments
Open

Repositories: Guideline for .gitattributes #12

andreashaerter opened this issue Mar 28, 2024 · 0 comments
Assignees

Comments

@andreashaerter
Copy link
Contributor

andreashaerter commented Mar 28, 2024

We often provide smaller tools and plugins where automatically release-tarballs are more then enough. When creating a release, Github creates a zip and a tar archive (the so called zipball and tarball), you can also get them via specific URLs:

https://api.github.com/repos/<user|org>/<repo>/tarball
https://api.github.com/repos/<user|org>/<repo>/zipball
https://api.github.com/repos/<user|org>/<repo>/tarball/<tag>
https://api.github.com/repos/<user|org>/<repo>/zipball/<tag>

However, these archives contain all files found in the projects repository. To exclude repository content (e.g. documentation, .git-files and so one) from being added to these archives, export-ignore can be used as the release feature pays attention to .gitattributes

Therefore, a useful template for .gitattributes would be as useful als it is for .gitignore

@andreashaerter andreashaerter self-assigned this Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant