git checkout -t origin/branch-name
Push and track a branch at the same time:
git push -u origin foo
git merge --no-ff foo
git status -sb
--abbrev-commit
--color-words
--decorate
Push and track a branch at the same time:
Merge a branch and always generate a merge commit, even if a fast-forward was possible: A condensed and useful status output: Useful `git log` options: (Shows as short a commitish as possible) (Show word-level diffs in the same line, rather than as two whole -/+ lines) (Where a commit is also a ref (e.g. the latest commit on a branch), display that ref in the output)