Created
September 6, 2016 12:36
-
-
Save lukemartin/5cc456339cd05311d84b67ecec5a5141 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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