Git Roots and Branches

Git Roots and Branches

Git is a minimal and elegantly architected DVCS. However, its terrible user interface obscures its simple data model, making reasoning with git surprising and frustrating. Once you have learned git's data model and a few commands to help you see what's going on, most of the surprises and frustration go …

Use git-crypt to Store Secrets in Git

Use git-crypt to Store Secrets in Git

git-crypt (github) keeps your secrets safe in a git repository. It decrypts on checkout and encrypts at commit using standard git hooks. Once configured, it is completely transparent. I had a situation where the secrets were already in the repo and I needed to encrypt them (if you're in this …

git bisect

Git has a nice feature called bisect that's immensely useful for finding out where and when something broke. For this example, we'll use small integers for commit ids because they're easier to reason about and orderly. In reality, they'll be long SHA hashes. Let's say you have a commit history …

git notes

Some notes about git. As with all my technical posts, some or all of this may be out of date. Consider it, then, courage to believe that there may be a solution to your problem in terms you can understand. I have a local repository I want to make into …