Re: Git: ignore file lines

Published on Christian Mayer's Weblog

Reference: http://benmezger.me/post/109706270421/git-ignore-file-lines

This is a smart solution.

It would be also nice if you could define something like this:

ignore lines N to M in file XYZ

Because most configuration stuff in tiny scripts are at the top of the script. Or if you want to ignore hundreds of lines at once you don’t want to edit each single line.

Example in .gitignore to ignore line 1 to 100 in file script.php:

*.log
build
script.php:1:100

More Resources

Recent Posts

About the Author

Christian is a professional software developer living in Vienna, Austria. He loves coffee and is strongly addicted to music. In his spare time he writes open source software. He is known for developing automatic data processing systems on Debian Linux server.

Categories: Commented, Programming
Tags: Git, ignore, Feature

Archive | Categories | RSS Feed | Usage | Imprint
Copyright © 2006 by