TIL About Adding a New Line to “git commit -m”

For Git messages I use git commit -m to add a headline to a git commit. So far, I’ve never used the detailed summary which you can add to a commit message. It was tooMuch of a hassle to open a text editor and add a detailed explanation. Today I learned that you can write a multi-line commit message with git commit -m. For example, in Bash: git commit -m 'my headline Here goes the detailed explanation of the commit ' Source:
Read more →

TIL About Git Pretty Log

Read more →

TIL How to Revert Last Git Commit but Keep Changes

Read more →

Git: Use Different Email Addresses And Keep Them Private

Both GitLab and GitHub allow you to use a private email address. Setting your commit email address on GitHub Commit email on GitLab Now, your regular email address will be private and others can’t see it on those platforms. But that also means that you now have two different email addresses that you have to add to your Git configuration. There are different ways to tackle this problem. For example, you can set a global configuration:
Read more →