nebyoolae, (edited ) to random
@nebyoolae@masto.neb.host avatar

My top 5 most-used commands (filtered against recency bias):

  • git
  • cd
  • .. (aliased to cd ..)
  • rake
  • ls

My bottom 5 least-used commands (selectively chosen from 'used 5 times, used 4 times...used 1 time'):

  • ssh
  • rebash (aliased to source ~/.bashrc)
  • steep (aliased to brew update; brew upgrade)
  • vi
  • chmod

siblingpastry, to random
@siblingpastry@mastodon.world avatar

Here's a quick trick that maybe everyone already knows, but I was well pleased with it :-D

When pushing a branch with upstream tracking, the canonical syntax is this:

git push -u origin <branch name>

But I get tired of having to copy and paste the branch name.

However if you're within the same branch, the @ token always refers to that branch, so you can just do this:

git push -u origin @

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • mdbf
  • DreamBathrooms
  • everett
  • magazineikmin
  • Durango
  • InstantRegret
  • rosin
  • Youngstown
  • love
  • slotface
  • GTA5RPClips
  • kavyap
  • ethstaker
  • Leos
  • ngwrru68w68
  • thenastyranch
  • tacticalgear
  • cubers
  • modclub
  • osvaldo12
  • cisconetworking
  • tester
  • khanakhh
  • normalnudes
  • provamag3
  • anitta
  • JUstTest
  • All magazines