commit before workspace switch