October 2016
Beginner
861 pages
20h 37m
English
While exporting a snapshot of a Git repository with the archive command (refer to Chapter 10, Patching and Offline Sharing), it is possible to change the way the archive is made.
We'll use the attributes_example repository:
$ git clone https://github.com/dvaske/attributes_example.git $ cd attributes_example
First, we'll set up the attributes needed in .gitattributes and commit the file on the exif branch:
$ git checkout exif Branch exif set up to track remote branch exif from origin by rebasing. Switched to a new branch 'exif' $ echo 'europe_needles.jpg export-ignore' >> .gitattributes $ git add .gitattributes $ git commit -m 'Add .gitattributes' [exif 783b7f7] Add .gitattributes 1 file ...