Github credentials optional

I don't want to store my Github credentials in a repository. I configured an ssh key on my server so I don't need credentials. With this modification it skips adding the username and password if they are null