Install the OpenSSL on Debian based systems
sudo apt-get install opensslLast 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.
The >>> operator allows a sequence of values to be returned:
myMock.someCall() >>> ['first value', 'second value', 'third value', 'etc']This returns each string in turn. Behaviour (such as throwing exceptions) in closures cannot be used by this operator.
The >> operator allows value or behaviour (closures) to be returned
| #!/bin/bash | |
| script="myscript" | |
| #Declare the number of mandatory args | |
| margs=2 | |
| # Common functions - BEGIN | |
| function example { | |
| echo -e "example: $script -m0 VAL -m1 VAL -o1 -o2 VAL" | |
| } |