undo my changes in master and keep changes in branches code example
Example: how to abandon changes and go last commit
#ignore all changes, and back to last commit
git add .
git stash
#ignore all changes, and back to last commit
git add .
git stash