Shows git commits on all your local branches, sorted oldest to newest
git for-each-ref --sort=committerdate refs/remotes/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
removing changes from a branch
Git Rebase Onto
git rebase --onto branch_1 old_branch branch_2
https://medium.com/@gabriellamedas/git-rebase-and-git-rebase-onto-a6a3f83f9cce
This article also is a primer on rebase in general
git rebase master feature_branch
is the same as
git checkout feature_branch
git rebase master