If you use the common git alias "git up" I can recommend a nice addition to it:
up = "!f() { git pull origin ${1-$(git rev-parse --abbrev-ref HEAD)} --rebase --autostash; }; f"
This adds an optional argument for what branch to rebase on.
"The relationship between cost and internal quality is an unusual and counter-intuitive relationship, it's usually hard to absorb. But understanding it is critical to developing software at maximum efficiency." martinfowler.com/articles/is-qu…