When you are working with an external library in git, should you add it to Git or should it be in
gitignore? If you put it in
gitignore, you run into the problem that if someone (or you yourself on another PC) wants to work on your code, they will first have to download and link the library. If you do include it, the graph of code activity will show 22k lines of code being changed on the initial commit and then only 100 on each following commit (at least that happened to me).
So is one of these solutions right or is there another one that I am missing?
PS: The same also applies to Makefiles and similar files.