Top
Best
New

Posted by FergusArgyll 9 hours ago

.gitignore Isn't the Only Way to Ignore Files in Git(nelson.cloud)
158 points | 42 commentspage 2
globular-toast 4 hours ago|
Magit has good support for these other methods. You press <i> and then select if you want the ignore to be shared (.gitignore) or private (.git/info/exclude).
barbazoo 4 hours ago||
Exclude sounds like a recipe for sadness.
PunchyHamster 1 hour ago||
another useful snippet

    [includeIf "hasconfig:remote.*.url:git@git.company.com:*/**"]
    path = /home/dir/per/company/config
allows for remote specific configs, overriding say email or other required options depending on where you send contributions - without having to have per repo config

works for dir too

    [includeIf "gitdir:/home/user/src/work1/"]
Git is REAL bitch about exact syntax here; the first snippet won't work with just :*, it needs :/* ; the second won't work without trailing slash
uptown 4 hours ago|
Not really news. I worked with dozens of developers who have managed to ignore files in Git.