# Pull from remote (optional) git pull # Find the commit git log # Select for edit git rebase -i <commit-hash>^ # 'pick' --> 'edit' # Change and add git add <path_to_file> # Commit the change git commit --amend # Finish the rebase git rebase --continue # Push to remote (optional) git push -f