Wherever your aliases are stored, you can do this:
alias this="git rev-parse --abbrev-ref HEAD"
Then you can type:
git push origin `this`
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/bin/node', | |
1 verbose cli '/usr/local/bin/npm', | |
1 verbose cli 'install', | |
1 verbose cli 'yeoman', | |
1 verbose cli '-g' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose read json /usr/local/lib/package.json | |
5 verbose read json /usr/local/lib/package.json |
[11] pry(#<ProbablyWorthWatching::FindsVideosFilter>)> Http.with_follow(true).get("http://t.co/CN60RkMG").response | |
=> #<HTTP/1.1 200 OK @headers={"Server"=>"nginx", "Date"=>"Fri, 01 Feb 2013 22:59:53 GMT", "Content-Type"=>"text/html; charset=UTF-8", "Transfer-Encoding"=>"chunked", "Connection"=>"keep-alive", "Expires"=>"Fri, 01 Feb 2013 23:39:05 GMT", "X-Ua-Compatible"=>"IE=EmulateIE9,chrome=1", "Vary"=>"User-Agent,Accept-Encoding", "X-Frame-Options"=>"SAMEORIGIN", "X-Dns-Prefetch-Control"=>"on", "X-Varnish"=>"68307248 67584637", "Age"=>"1248", "Via"=>"1.1 varnish", "X-Varnish-Cache"=>"1", "X-Vserver"=>"10.90.128.188", "Cache-Control"=>"no-store, no-cache, must-revalidate, post-check=0, pre-check=0"}> |
--(jadams@timely)-(40/pts/3)-(1126/02-Feb-13)-- | |
--($:~/ruby/probably_worth_watching)(master)ruby-1.9.3-p362@probably_worth_watching-- | |
$ ruby examples/ruby_video_extractor.rb | |
Got past FindsLinksFilter | |
#<ProbablyWorthWatching::Tweet:0x00000001aae938 @author="JEG2", @content="This description of IRC is epic: http://t.co/L6V578Gj">http://t.co/L6V578Gj | |
Got past FindsLinksFilter | |
#<ProbablyWorthWatching::Tweet:0x00000001ab4f40 @author="JEG2", @content="RT @thomweerd: 1Password is currently on sale for 50% off. – https://t.co/zsh0562L">https://t.co/zsh0562L | |
Got past FindsLinksFilter | |
#<ProbablyWorthWatching::Tweet:0x00000001ab4158 @author="JEG2", @content="@avdi I use this and it's AMAZING: http://t.co/RaiEqEIo">http://t.co/RaiEqEIo | |
Got past FindsLinksFilter |
---------------------------- | |
#<ProbablyWorthWatching::Tweet:0x00000004cfbf30 @author="kanzure_", @content="http://www.youtube.com/watch?v=3N0kWzC6jmE&feature=related Lecture - 2 Architecture of Industrial Automation Systems"> | |
title: Lecture - 2 Architecture of Industrial Automation Systems | |
description: Lecture Series on Industrial Automation and Control by Prof. S. Mukhopadhyay, Department of Electrical Engineering, IIT Kharagpur. For more Courses visit http://nptel.iitm.ac.in | |
url: http://www.youtube.com/v/3N0kWzC6jmE&feature=youtube_gdata_player | |
---------- | |
#<ProbablyWorthWatching::Tweet:0x00000004d026a0 @author="kanzure_", @content="http://www.youtube.com/watch?v=PirH8PADDgQ the ad"> | |
title: Koyaanisqatsi (trailer) | |
description: Trailer do filme Koyaanisqatsi |
#<ProbablyWorthWatching::Tweet:0x0000000e810598 @author="", @content="heisenmink: Congratulations! http://www.youtube.com/watch?v=gsEcac4jsQY | 14919"> | |
title: The Arsonists - The Session | |
description: The Arsonist, a collection of Brooklyn MC's: Q-Unique,Dstroy, Swel Boogie, Jise One and Freestyle formed in 93. | |
Mixed by Babu from the Beat Junkies | |
enjoy! | |
url: http://www.youtube.com/v/gsEcac4jsQY&feature=youtube_gdata_player | |
---------- | |
#<ProbablyWorthWatching::Tweet:0x0000000eed62b0 @author="", @content="http://www.youtube.com/watch?feature=player_detailpage&v=FkLVl3gpJP4#t=4501s |
$ -> | |
$.get '/lol/get_data', (data) -> | |
load_chart = new Highcharts.Chart | |
chart: | |
renderTo: 'graph' | |
defaultSeriesType: 'line' | |
title: | |
text: 'Per Diem' | |
xAxis: | |
title: 'Time' |
$ blender | |
Traceback (most recent call last): | |
File "/usr/lib/blender/scripts/addons/io_curve_svg/__init__.py", line 58, in execute | |
from . import import_svg | |
ValueError: level must be >= 0 | |
location:<unknown location>:-1 | |
location:<unknown location>:-1 |
LocalJumpError: no block given (yield) | |
/app/examples/twitter_video_extractor.rb:97:in `execute' | |
/app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `public_send' | |
/app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `dispatch' | |
/app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/actor.rb:327:in `block in handle_message' | |
/app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/tasks/task_fiber.rb:24:in `block in initialize' |
ThreadError: can't create Thread (11) | |
from /usr/local/lib/ruby/1.9.1/timeout.rb:49:in `start' | |
from /usr/local/lib/ruby/1.9.1/timeout.rb:49:in `timeout' | |
from /app/examples/twitter_video_extractor.rb:90:in `execute' | |
from /app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `public_send' | |
from /app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/calls.rb:23:in `dispatch' | |
from /app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/actor.rb:327:in `block in handle_message' | |
from /app/vendor/bundle/ruby/1.9.1/gems/celluloid-0.12.4/lib/celluloid/tasks/task_fiber.rb:24:in `block in initialize' |
Wherever your aliases are stored, you can do this:
alias this="git rev-parse --abbrev-ref HEAD"
Then you can type:
git push origin `this`