Information Technology Reference
In-Depth Information
If you want to remove all of the untracked files use:
$ git clean -f
13-9. Customizing a project with .dist
files
Problem
You want to start a new Internet application for publishing blogs. You plan to publish
the application as an open source. Blog entries will be stored in the database and the
credentials to access the database server will be stored in a file.
To make life easier for those who plan to use your application you need to:
• Define the rules to ignore configuration files
• Create the general structure of the configuration file
Both the .gitignore file and the generic configuration file should be committed
with the code for your application.
Solution
Initialize a new repository:
$ cd git-recipes
$ mkdir 13-09
$ cd 13-09
$ git init
Create an empty initial revision with:
$ git commit --allow-empty -m "Initial commit"
Create the configuration file named database.ini-dist . The contents of the
file are shown in Listing 13-5 .
 
Search WWH ::




Custom Search