Skip to content

Instantly share code, notes, and snippets.

View h8nor's full-sized avatar

h8nor

  • GPG: 0xB5DE5869
View GitHub Profile
@h8nor
h8nor / gpg-signing.md
Last active June 25, 2021 20:44 — forked from xavierfoucrier/gpg-signing.md
GPG signing with Git and Github Desktop

Hi Github users,

You can now signed your commits on Github using at least Git 2.18.0 and Github Desktop 1.6.1.

You can find out a GPG key gpg --list-secret-keys --keyid-format LONG and export it to a file gpg --armor --export-secret-key -a YOUR_GITHUB_LOGIN by skipping the first point.

  1. Generate a GPG key and add it to Github: https://help.github.com/articles/generating-a-new-gpg-key (if you don't want to type a passphrase on every commit, you need to press "Enter" when the console will prompt you to type a passphrase)
@h8nor
h8nor / pre-commit.sh
Last active September 13, 2019 12:14 — forked from rlee287/pre-commit.sh
Short git pre-commit hook to remove BOM headers desktop/desktop#3768
#!/bin/sh
#
# A hook script to remove BOM headers in Windows
echo "Running pre-commit BOM removal"
trap ctrl_c INT
ctrl_c ()
{