git reset --soft HEAD~1
It undoes the most recent commit whilst keeping the changes made in that commit to staging.
git checkout master
git merge development
git push -u origin master
git branch -r --contains <commit>
If you want to delete all local branches that are already merged into master, you can use the following command
git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d