Skip to content

Instantly share code, notes, and snippets.

View wujiayi101's full-sized avatar
🤖

Wu wujiayi101

🤖
View GitHub Profile
[user]
email = scott@nonnenberg.com
name = Scott Nonnenberg
[alias]
prune = fetch --prune
# Because I constantly forget how to do this
# https://git-scm.com/docs/git-fetch#git-fetch--p
undo = reset --soft HEAD^
@wujiayi101
wujiayi101 / positional.sh
Created November 16, 2015 14:39
Shell Script Examples
#!/bin/bash
# positional.sh
# This script reads 3 positional parameters and prints them out.
POSPAR1="$1"
POSPAR2="$2"
POSPAR3="$3"
echo "$1 is the first positional parameter, \$1."