You can upload locally created after the online repository
1, choose a good right-click the folder Git Bash Here
2, first create a local repository git init
3、git add README.md
4、git commit -m "add README"
5、git push -u origin master
6, git the Add Remote Origin your repository link
7、git add .
8、git commit -m "Initial commit"
9、git push -u origin master
Other popularize knowledge:
Switching repository Address: [git remote set-url origin URL] replacement remote repository address, URL to the new address.
First delete the remote address of the warehouse, and then add:
[Git remote rm origin] to remove the existing remote repository
[git remote add origin url] add a new remote repository