Skip to content

Instantly share code, notes, and snippets.

View Stephs15's full-sized avatar

Stephs15

View GitHub Profile
#!/bin/sh
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD 2> /dev/null | grep -oE "[A-Z]+-[0-9]+")
if [ -n "$BRANCH_NAME" ]; then
echo "$BRANCH_NAME $(cat $1)" > $1
fi
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
</head>
<body>
<article>
<h1>Computer Graphics</h1>
<p>