Skip to content
Newer
Older
100755 16 lines (12 sloc) 393 Bytes
58dcade @jamiew Basic 'push' command for completeness. I'm stoked for the clipboard f…
authored Jan 24, 2011
1 #!/bin/sh
2 #
3 # Usage: push
4 #
5 # Send your local branch changes to the remote branch
6 # This will be pimped out later... I want to make it copy a handy
7 # "check out my commit" diff URL to the clipboard. e.g. =>
8 # http://github.com/jamiew/app/compare/OLDREF...NEWREF
9 #
10
11 remote=origin
12 branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
13
14 git push $remote $branch
15
Something went wrong with that request. Please try again.