Skip to content

Instantly share code, notes, and snippets.

View sammyart's full-sized avatar
🏠
Working from home

Barbara sammyart

🏠
Working from home
View GitHub Profile

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@sammyart
sammyart / medium-article-with-canonical-link.sh
Created October 4, 2022 18:39 — forked from weibeld/medium-article-with-canonical-link.sh
Bash script for creating a Medium article with a canonical URL through the Medium API
#!/bin/bash
set -e
TITLE=$1
CANONICAL_URL=$2
if [[ "$#" -ne 2 ]]; then
cat <<EOF
USAGE