Add getting commits in branch support for git repository