Skip to content

Instantly share code, notes, and snippets.

@kreig303
kreig303 / gitflow-breakdown.md
Created June 27, 2019 18:36 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@kreig303
kreig303 / gpg-zsh.md
Last active February 22, 2020 15:34
set up zsh to use gpg to sign commits for github
# Install GnuPG
% brew install gnupg
% gpg --full-generate-key
# RSA and DSA/4096 bytes/Never expires
# enter name
# noreply from emails settings in gh if anon commits, otherwise primary email
# empty comment
# secure passphrase
# bang on keyboard to randomize key
@kreig303
kreig303 / gpgsignfalse.sh
Created February 26, 2020 16:02
avoiding gpg signing for specific repos
% git config commit.gpgsign false # Sets local option.
@kreig303
kreig303 / README.md
Created March 3, 2020 14:24 — forked from DirtyF/README.md
Setup Jekyll on macOS with brew and rbenv - See https://jekyllrb.com/docs/installation/macos/

First, make sure you have command line tools installed:

xcode-select --install

Then open Terminal.app and type:

curl https://gist.githubusercontent.com/DirtyF/5d2bde5c682101b7b5d90708ad333bf3/raw/fbc736fa1b50bd637929a315e6803df306c8bc8e/setup-rbenv.sh | bash
@kreig303
kreig303 / stop-the-sha-swap.md
Last active January 1, 2023 10:24
stop lockfile sha-swapping! [npm]

hocus pocus to stop “sha-swapping” in lockfiles below

% git checkout branch-you-working-on
% rm -rf node_modules
% npm cache clean -f
% npm i

this should stop that sha1 <-> sha512 crap from happening to your local lockfiles when you do a random npm i after pulling/rebasing a branch.