Skip to content

Instantly share code, notes, and snippets.

@diiq
Created December 6, 2013 21:46
Show Gist options
  • Save diiq/7832662 to your computer and use it in GitHub Desktop.
Save diiq/7832662 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Branches, but, like an antebellum father of a
# southern belle, it first demands a declaration
# of your intentions.
branch=$1
test -z $branch && echo "branch required." 1>&2 && exit 1
scope_template=".git/scope-template"
scope_definition=".git/$branch-scope"
touch "$scope_template"
git checkout -b $branch &&
cat $scope_template > $scope_definition &&
$EDITOR "$scope_definition" &&
echo
@ejdyksen
Copy link

# Branches, but, like an antebellum father of a 
# southern belle, it first demands a declaration 
# of your intentions.

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment