Mostly git related:
# resetting, diffing, and logging alias clean="git reset --hard && git clean -f -d" alias hard-clean="git clean -f -i -d -x" alias diff= "git difftool master head" alias gmbd="git diff $(git merge-base --fork-point master)" alias gl="git log --oneline" alias filehistory="git log --follow -- " alias resetf="git checkout head --" alias diffp="git diff head^" # list recent branches and navigate there alias grb="git branch --sort=-committerdate | head" alias grb1="grb | awk 'NR==1 {print $1}' | xargs git checkout" alias grb2="grb | awk 'NR==2 {print $1}' | xargs git checkout" alias grb3="grb | awk 'NR==3 {print $1}' | xargs git checkout" alias grb4="grb | awk 'NR==4 {print $1}' | xargs git checkout" alias grb5="grb | awk 'NR==5 {print $1}' | xargs git checkout" alias grb6="grb | awk 'NR==6 {print $1}' | xargs git checkout" # Go forward in commit history, towards particular commit/pointer # usage: `forward master` forward() { git checkout $(git rev-list --topo-order HEAD.."$*" | tail -1) } # surprisingly effective alias master="git checkout master && git pull" # try this one yourself alias wt="curl wttr.in"
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Mostly git related: