https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
Change multiple commits: git rebase -i HEAD~<number of commits>
'git pull --rebase --autostash' - this automatically stashes your local changes, pulls in new changes (and rebases if needed), and then pops the changes back off the stash.
Add repo to subdirectory
-
add to separate branch
-
rebase it and rewrite history
Force push Subtree
git push <remote> `git subtree split --prefix <local-folder> <local-branch>`:<remote-branch> --force