Live data from Hacker News

.gitignore Isn't the only way to ignore files in Git

nelson.cloud

1–10 of 188 posts

Re: .gitignore Isn't the only way to ignore files in Git

#5

This is just a very low-effort regurgitation of this: https://git-scm.com/docs/gitignore

You made my day. Everything is said and explained there.

Ok, sometimes a more vivid and visually explanatory style would help, but here still Google is your friend for individual concepts.

One of the best resources there is. git is a hell of a tool. It looks simple but is so beautifully versatile without being complex or not deductive.

Re: .gitignore Isn't the only way to ignore files in Git

#6

This is just a very low-effort regurgitation of this: https://git-scm.com/docs/gitignore

You made my day. Everything is said and explained there. Ok, sometimes a more vivid and visually explanatory style would help, but here still Google is your friend for individual concepts. One of the best resources there is. git is a hell of a tool. It looks simple but is so beautifully versatile without being complex or not deductive.

"Google is your friend for individual concepts."

Asking aLlm is the new google

Re: .gitignore Isn't the only way to ignore files in Git

#7

I use the ever living hell out of .git/info/exclude. Works great for scripts/Makefiles I only want locally and collaborators wouldn’t care about or be able to use.

Interested in examples of the types of scripts others collaborators wouldn't be able to use? Like scripts for PR workflows?

Re: .gitignore Isn't the only way to ignore files in Git

#8
~/.config/git/ignore and ~/.config/git/config is the proper place for your global git config and ignore instead of creating a ~/.gitignore_global and changing the config. IMO.

my dotfiles are a lot smaller at the root level taking advantage of the ~/.config/ for a lot more things.

the git exclude isn't used as much because it doesn't get committed to the repository so you'd have to recreate it each time you wanted to use it. that doesn't mean they're bad just why they are not used.

Re: .gitignore Isn't the only way to ignore files in Git

#9

This is just a very low-effort regurgitation of this: https://git-scm.com/docs/gitignore

You made my day. Everything is said and explained there. Ok, sometimes a more vivid and visually explanatory style would help, but here still Google is your friend for individual concepts. One of the best resources there is. git is a hell of a tool. It looks simple but is so beautifully versatile without being complex or not deductive.

    git is a hell of a tool. It looks simple but is so beautifully versatile without being complex

    without being complex
Uh, what?

Re: .gitignore Isn't the only way to ignore files in Git

#10

Earlier quoted context omitted.

You made my day. Everything is said and explained there. Ok, sometimes a more vivid and visually explanatory style would help, but here still Google is your friend for individual concepts. One of the best resources there is. git is a hell of a tool. It looks simple but is so beautifully versatile without being complex or not deductive.

git is a hell of a tool. It looks simple but is so beautifully versatile without being complex without being complex Uh, what?

What part of

   Enumerating objects: 15, done.
   Counting objects: 100% (15/15), done.
   Delta compression using up to 10 threads
   Compressing objects: 100% (8/8), done.
   Writing objects: 100% (8/8), 1.43 KiB | 1.43 MiB/s, done.
   Total 8 (delta 7), reused 0 (delta 0), pack-reused 0 (from 0)
   remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
don't you understand?!
Post reply on HN