News for hackers. Stuff that matters.
Re:Git git git git git by davedx on Wednesday September 27, 2017 @01:25AM (#15345118)
I just alias 'pull' to git pull, it's much nicer. Also 'push' and a few of the other most common ones.
Re:Git git git git git by crehn on Wednesday September 27, 2017 @01:41AM (#15345189)
Or alias to gp, gl, gd, ga, gmv, grm, gsh, glg, gcm, gcam, gpuo, gdwd, gpuom, ...
Re:Git git git git git by pluma on Wednesday September 27, 2017 @05:56AM (#15346245)
You're joking but...

    alias g='git status -sb'
    alias ga='git add'
    alias gac='git commit --amend'
    alias gb='git branch'
    alias gbb='git checkout -b'
    alias gbm='git branch --merged'
    alias gbn='git branch --no-merged'
    alias gc='git commit -m'
    alias gcp='git cherry-pick'
    alias gco='git checkout'
    alias gd='git diff'
    alias gdc='git diff --cached'
    alias gg='git status'
    alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
    alias gla='git log --all --graph --pretty=format:"%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
    alias ggpublish='git push && git push --tags && npm publish'
    alias gp='git pull --rebase && git push'
    alias gpp='git push && git push --tags'
    alias gpl='git pull --rebase --prune'
    alias gpt='git pull --rebase && git push --tags'
    alias grb='git rebase'
    alias grc='git rebase --continue'
    alias gsp='git stash ; gp ; git stash pop'
    alias unfuckgitremote='git branch --set-upstream-to=origin/`git rev-parse --abbrev-ref HEAD` `git rev-parse --abbrev-ref HEAD`'
I have to admit I use `unfuckgitremote` more often than you'd hope.
Re:Git git git git git by auscompgeek on Wednesday September 27, 2017 @08:35AM (#15347115)
Instead of `unfuckgitremote`, why not just use `git push -u`?
Re:Git git git git git by jasonm23 on Wednesday September 27, 2017 @10:06AM (#15347891)
origin head
Re:Git git git git git by _joel on Wednesday September 27, 2017 @09:01AM (#15347318)
Re:Git git git git git by labster on Wednesday September 27, 2017 @01:59AM (#15345244)
glwt