Last Updated: June 24, 2016
·
133
· ryrych

Ignoring personal files in git

Suppose that you would like to keep resque.pid file inside the project. You
don’t want to make it into git repo, though.

PIDFILE=./resque.pid BACKGROUND=yes QUEUES=jobs,mailers rake environment resque:work

To do that use .git/info/exclude

echo "resque.pid" >> .git/info/exclude

That’s it! if you’re interested in more useful git tips, visit my git_cheatsheet on Github.