Git protip: easy templates for `.gitignore`
The .gitignore file is great! But it can be tedious to fill in. What if we could do it all in one go?
You’re looking for good practices, tech novelties that we like or how to use efficiently some tools? You’re at the right place!
You can’t find the subject you’re looking for? Let us know, we’ll be happy to help!
(Also if you read French, we have a lot more content.)
The .gitignore file is great! But it can be tedious to fill in. What if we could do it all in one go?
How can we avoid adding unwanted files to Git? And reciprocally, how can we add otherwise ignored files?
Using Git optimally goes through tweaking its configuration!
Resolving conflicting files after a merge can be time consuming. Fortunately Git provides us with a tool to speed this up!
No more explicit branch tracking on push! Say hello to autoSetupRemote configuration!
Did you know that you could force the push without risking to erase your collegues work?
Do you make typos when writing your commands? Would you like Git to correct automatically?
What about an alias that would to the job for you?
You can quickly "update" an old commit thanks to "commit --fixup"
Use "git log -L" to track changes only within a code block, figure out who actually introduced a bug, etc.
Do you think "git blame" is a good idea? You’re wrong!
You just screwed up your last commit and want to fix it? The "git commit --amend" command is your friend!