Rewrap new content and tweak wording a bit
parent
3ec8702233
commit
6e42fa47b6
|
@ -96,16 +96,16 @@ the `.gitignore`.
|
||||||
|
|
||||||
## Light-weight distribution packages
|
## Light-weight distribution packages
|
||||||
|
|
||||||
Including the tests and other useless information like .travis.yml in distributed
|
Including the tests and other useless information like .travis.yml in
|
||||||
packages is not a good idea.
|
distributed packages is not a good idea.
|
||||||
|
|
||||||
Portable-per-project-configuration `.gitattributes` file is a git specific
|
The `.gitattributes` file is a git specific file like `.gitignore` also living
|
||||||
file like `.gitignore` also living at the root directory of your library.
|
at the root directory of your library. It overrides local and global
|
||||||
Moreover it overrides local and global configuration (`.git/config` and
|
configuration (`.git/config` and `~/.gitconfig` respectively) when present and
|
||||||
`~/.gitconfig` respectively) when present and tracked by git.
|
tracked by git.
|
||||||
|
|
||||||
Use `.gitattributes` to prevent unwanted files from bloating the
|
Use `.gitattributes` to prevent unwanted files from bloating the zip
|
||||||
zip distribution packages.
|
distribution packages.
|
||||||
|
|
||||||
// .gitattributes
|
// .gitattributes
|
||||||
Tests/ export-ignore
|
Tests/ export-ignore
|
||||||
|
@ -117,7 +117,9 @@ Test it by inspecting the zip file generated manually:
|
||||||
|
|
||||||
git archive branchName --format zip -o file.zip
|
git archive branchName --format zip -o file.zip
|
||||||
|
|
||||||
> **Note:** files would be still tracked by git just not included in the distribution. This feature works for packages that have been tagged.
|
> **Note:** files would be still tracked by git just not included in the
|
||||||
|
> distribution. This will only work for GitHub packages installed from
|
||||||
|
> dist (i.e. tagged releases) for now.
|
||||||
|
|
||||||
## Publishing to a VCS
|
## Publishing to a VCS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue