Git

Collections

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
  1. 6 Best Practices to Manage Pull Request Creation and Feedback
  2. A Better Model for Stacked (GitHub) Pull Requests
  3. Git Rebase... with Merges?
  4. Git Tools
  5. Git commands nobody has told you
  6. Git global setting
  7. Organizing multiple Git identities
  8. Submodule Nuxt
  9. Temp branch 운영