nebyoolae, 6 days ago (edited 5 days ago) to random 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 #cli #stats
My top 5 most-used commands (filtered against recency bias):
cd ..
My bottom 5 least-used commands (selectively chosen from 'used 5 times, used 4 times...used 1 time'):
source ~/.bashrc
brew update; brew upgrade
#cli #stats
siblingpastry, 3 days ago to random Here's a quick #git #cli 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 @
Here's a quick #git #cli 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 @