Update outdated and locally modified files before commit