code to skim single branches and set automatically the code version