Instantly share code, notes, and snippets.

View ask.sh
# 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
View makefile
# Makefile for Scott Nunemacher
# Makefile format:
# target: dependencies
# actions
# By default, make these targets
all: newest.txt not-newest.txt variable-content.txt
View git-command-cheat-sheet.md

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/
View git-alias-cheat-sheet.md

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