GIT - force pull to overwrite local files
git fetch --all git reset --hard origin/master git pull origin master
git fetch --all git reset --hard origin/master git pull origin master
this creates a <NEW_BRANCH_NAME> from the current branch, with the last commit as the only commit. (no history) git branch <NEW_BRANCH_NAME> $(e...
Links: https://help.github.com/articles/configuring-a-remote-for-a-fork/ https://medium.com/sweetmeat/how-to-keep-a-downstream-git-repository-current-w...
Links: http://think-like-a-git.net/sections/rebase-from-the-ground-up/cherry-picking-explained.html
for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done