Unable to execute the change directory command because of which the files that aren't needed also get committed