development

What if .git/info/exclude doesn't work

Git is very useful if you work in a team or you want to keep your project versioned. Sometimes though you want to ignore specific files which are specific to your repository and you don't want to share this setting with other repositories.

To do it you can simply put the path to ignore in the .git/info/exclude file.

Today I did it for a new project but git kept tracking the path I needed to ignore. Luckily there is a simple command that allows you to tell git to assume that a file is always unchanged. To do it just write it in your terminal:

git update-index --assume-unchanged path/to/exclude

To revert this settings just write:

git update-index --no-assume-unchanged path/to/exclude

I hope this tip will be useful for you. If you have something to say about it just leave a comment below.

Read more

Portfolio | The projects I've worked on

Blog | What I've to say

A lot of people have asked me why I've recently switched from Sony to Fuji and the reasons are multiple so I'm going to write a short blog post to let you know why I did that (and just cause you've...
As you've read on my blog I've been in Iceland in April for two weeks taking pictures for the Icelandic tourism board. It was a fantastic experience: the nature in Iceland is truly fantastic and...
I've been in Iceland for a project about 2 years ago. I've been there for just 4 days and I didn't get the chance to explore the island. Since then, Iceland has been on my list. I had to go back and...