Skip to content

Instantly share code, notes, and snippets.

View graphicsminded's full-sized avatar

Graphics Minded graphicsminded

View GitHub Profile
@graphicsminded
graphicsminded / git-alias-cheat-sheet.md
Last active January 28, 2020 11:28
Git Alias Cheat Sheet for ~/.gitconfig

Use Git Aliases to Reduce Fingertigue

Create

Include these aliases in your git workflow by adding them to: ~/.gitconfig

[alias]
    b = branch
    c = checkout
    h = help
    p = push
 s = status
@graphicsminded
graphicsminded / git-command-cheat-sheet.md
Last active April 21, 2016 03:31
Git Command Cheat Sheet

Git Commands in a Project Workflow

USERNAME is you
MYPROJECT is the name of your project

Create a MYPROJECT repository on GitHub but don't include ANY files (not even README.md or .gitignore). Then in a local directory create your local repository from the commandline.

Create a Project

mkdir MYPROJECT
cd MYPROJECT/
@graphicsminded
graphicsminded / makefile
Created November 19, 2016 11:25
New Project Makefile
# Makefile for Scott Nunemacher
# Makefile format:
# target: dependencies
# actions
# By default, make these targets
all: newest.txt not-newest.txt variable-content.txt
@graphicsminded
graphicsminded / ask.sh
Last active July 15, 2018 20:42
Bash General-Purpose Yes/No Prompt Function ("ask")
# This is a general-purpose function to ask Yes/No questions in Bash, either
# with or without a default answer. It keeps repeating the question until it
# gets a valid answer.
ask() {
# https://djm.me/ask
local prompt default reply
while true; do