I have a repository in Git. I made a branch, then did some changes both to the master and to the branch.
Then, tens of commits later, I realized the branch is in muc
One can also checkout all files from the other branch into master:
git checkout master git checkout better_branch -- .
and then commit all changes.