The current implementation of private/public features is not 100% compatible with git v2. Please check https://stackoverflow.com/questions/24864700/fatal-the-upstream-branch-of-your-current-branch-does-not-match-the-name-of-you and https://stackoverflow.com/questions/948354/default-behavior-of-git-push-without-a-branch-specified/948397#948397