Skip to content

Instantly share code, notes, and snippets.

@lukemartin
Created September 6, 2016 12:36
Show Gist options
  • Save lukemartin/5cc456339cd05311d84b67ecec5a5141 to your computer and use it in GitHub Desktop.
Save lukemartin/5cc456339cd05311d84b67ecec5a5141 to your computer and use it in GitHub Desktop.
[user]
name = Name Nameson
email = [email protected]
[core]
editor = /Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl -n -w
[push]
default = simple
[alias]
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
# Delete the remote version of the current branch
unpublish = "!git push origin :$(git branch-name)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment