commit from right directory