Ability to update the latest commit with working changes

the same functionality which is provided by git commit --amend