git remote add origin https://......
git remote set-url origin https://.....
git push -u origin --all # pushes up the repo and its refs for the first time
git push -u origin --tags # pushes up any tags原文:http://blog.csdn.net/majiakun1/article/details/41805007