Strona domowa

Last edit

Summary: English -> English page

Changed:

< //[If this is all Polish to you, click here: [[English]]]//

to

> //[If this is all Polish to you, click here: [[English page|English]]]//


Witam na mojej prywatnej stronie internetowej!

[If this is all Polish to you, click here: English]

Uwaga: z oczywistych powodów nie mogę zagwarantować swojej nieomylności, choć staram się o zgodność tego, co piszę, z Prawdą. Jest również oczywiste, że nie gwarantuję takiej zgodności w przypadku komentarzy. Umieszczenie linku do strony spoza niniejszego serwisu nie musi oznaczać, że podzielam poglądy autora tej strony, a jedynie, że uważam ją za wartościową z takich czy innych powodów.

Marcin ‘mbork’ Borkowski

2018-10-14 Magit and C-u i

Last time I mentioned that I use multiple backup copies of my .env file. One problem with that approach was they they cluttered my Git status (or the magit-status window). I could put the relevant pattern in my .gitignore file, but I didn’t want to bother other programmers in the team with peculiarities of my personal setup.

Well, quite unsurprisingly, Git does support ignoring files without putting them in .gitignore. You can use the file .git/info/exclude, which has the same format as .gitignore, but is not committed to the repository.

One grip I had was that I knew that Magit supported ignoring files by putting the point over them and pressing i (magit-gitignore). But this puts them in .gitignore, not in .git/info/exclude. I thought “well, it’s the second time in my life when I need some feature of Git that Magit doesn’t support”.

Or is it? I decided to try C-u i, and wow, here it is! Had I read the docstring, I would knew that. Interestingly, this seems not to be mentioned in the manual. This might mean that skimming through the Magit sources and looking at the docstrings might reveal more little gems like that!

CategoryEnglish, CategoryBlog, CategoryEmacs

Comments on this page

More...