Git
Collections
- Introducing the Space Git Flow - Branching Strategies about Git flow, GitHub flow, Trunk-based development, Space Git Flow
- When to use "chore" as type of commit message?
"
grunt task
" means nothing that an external user would see:- implementation (of an existing feature, which doesn't involve a fix),
- configuration (like the
.gitignore
or.gitattributes
), - private internal methods...
- Confusing git terminology
- Why some of us like "interdiff" code review
How to Write Useful Commit Messages
- This commit will
What
Why
How do I commit case-sensitive only filename changes in Git?
git mv -f yOuRfIlEnAmE yourfilename
Commit with offered message editing
git commit -em "some string"
would open the text editor with "some string" that could be edited.
git commit --fixup=[(amend|reword):]
Tracking SQLite Database Changes in Git
First, add a diff type called "sqlite3" to your config. The simplest way is to just run these commands:
git config diff.sqlite3.binary true
git config diff.sqlite3.textconv "echo .dump | sqlite3"
Alternatively, you can add this snippet to your ~/.gitconfig
or .git/config
in your repository:
[diff "sqlite3"]
binary = true
textconv = "echo .dump | sqlite3"
Next, create a file called .gitattributes
if it's not already present and add this line:
*.sqlite diff=sqlite3
So it does look like git's delta encoding works with sqlite's blocks.
Children