DEV Community

Discussion on: Dotfiles - Git Config with Aliases

Collapse
 
michaelcurrin profile image
Michael Currin

Thanks for sharing.

What are the usecases of running those like git make ARG vs just running make ARG?

Regarding tests I usually have a test command in Makefile so I can run make test. Then it is also accessible to anyone with the repo its Makefile and they don't need my aliases setup.

What kind if content do you put in your exclude files?

Collapse
 
vlasales profile image
Vlastimil Pospichal

git make change directory to root of the project first.
I put my own working configuration into exclude, testing directories, swap files, Makefile in project without Makefile, tagfiles, etc. There should also be IDE files inside, but many developers do weeds .gitignore, which is common to all.

Thread Thread
 
michaelcurrin profile image
Michael Currin

Oh yes I forgot about that in git.

If you don't want to run exclude each time you can add those IDE files to your global gitignore file

dev.to/michaelcurrin/dotfiles-glob...

Thread Thread
 
vlasales profile image
Vlastimil Pospichal

Yes, I know the global gitignore and I use it, but something is differ in different projects.