• Common git aliases

    13 mar 2015

    As I read on shiftkey blog "perhaps the most overlooked command of git is alias". I have to agree with him on that one, when I started out with git I used GitExtensions mostly due to me not being able to remember the commands. I wasn't using git fulltime so it was really hard to digg down my brain and find the syntax every time I needed it.

    Over the years I have been collecting the aliases that makes sense for me, and by that I really mean makes sense for me :) I might have lost a few recently when I had to reinstall my laptop after a complete crash, but below you will find those I have recovered and remember to have been using quite a bunch.

    Common actions

    st - status -s
    dh - diff HEAD
    aa - add -A
    cm - commit -m
    ups - commit -a --amend
    

    Branches

    co - checkout
    cob - checkout -b
    

    Log

    This part is mostly different views on logs, honestly I'm not sure it would make sense for anyone but me. Use it for inspiration and go modify it to fit your needs. Tharrr be no silverbullets here neither.

    ls - log --pretty=format:"%C(yellow)%h %ad%Cred%d %Creset%s%Cgreen [%cn]" --decorate --date=relative
    ll - log --pretty=format:"%C(yellow)%h %ad%Cred%d %Creset%s%Cgreen [%cn]" --decorate --date=relative --numstat
    fl - log -u
    

    Read more...


  • New blog

    09 feb 2015

    It's been a while since I've posted on my old WordPress blog, and I've pretty much spent more time doing security patching than updating content. In that light I wanted to reroll everything to a new site based on Markdown, static file generation to remove the security patching etc.

    It didn't take me long to move my view towards Sandra.Snow since I keep having a hard time making Ruby work well on a windows box (by automated installs). I've tried so many times and every time I end up having to download packages over and over again. Last Ruby thing I was picking around in just blew up so much that it was easier for me to install Linux in a vm and work in that one :(

    In my battle to switch there have been a few thoughts on keeping my old posts around, but honestly they aren't that interesting. I have backed up everything so in case I want to convert them at some point I can do that. My guess would be that it will never happen.

    Read more...