The Cliff's Notes of my original issue is that I have a thesis project repo hosted on GitHub that I'm using multiple machines to access for both reading and writing to the repo. I have my home desktop, my laptop, my professor is using the repo on his machine, and we have our "production" server. We've been using this repo with no issues on our personal machines, via Win7, Win8.1, and Ubuntu 14.04. On all of these systems we're using the following remote URL:
As mentioned in GitHub help page "HTTPS cloning errors", this is because your CentOS 6.x has an old git version. (type
git --version to confirm)
If you can upgrade git there, you won't need to attach your username to the url.
If you cannot upgrade, change the remote url to add your username is indeed a workaround.
git remote set-url origin https://email@example.com/user/repo.git
You can also try to add your username for any github url:
git config --global credential.https://github.com.username YOUR_USERNAME
But if git is too old, that last command might not even be supported.