I use a GPG key to sign my git commits.
An error like this one might be a sign of an expired GPG key.
error: gpg failed to sign the data fatal: failed to write commit object
#!/bin/sh | |
# | |
# Clean-up Xiaomi smartphone without rooting: | |
# | |
# 1) You have to install adb tool from android sdk | |
# 2) You have to activate developer options, next activate usb debugging | |
# 3) Comment out or delete lines with packages, if you really need them | |
# 4) Optional: I hightly recommed to activate OEM unlocking feature in developer options. | |
# It doesn't unlock you device immediately, but in case of breaking you phone | |
# you will have opportunity to unlock you phone and reflash it via MiFlash. |
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
dash_id=xxxx | |
api_key=xxx | |
app_key=xxx | |
# 1. export | |
curl -X GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${api_key}&application_key=${app_key}" > dash.json | |
# 2. edit dash.json | |
move "graphs", "title", "description" up one level in the json hierarchy, from being beneath "dash" to being at the same level |