Fixing issues with commits command with an empty repo.
Adding default value of master for branches
Adding remote prefix
Adding handling for empty repos.