1. Create a remote repository
2. Open a command board local project: git bash here
3. Local Project git Initialization: Enter the command git init
4. git add README.md: first create a local file README.md
5. git commit -m "first commit": the staging zone changes to be submitted to the local repository
6. git remote add origin remote project Address: Add Remote Project Address
7.git push -u origin master: submit to a remote repository
Error:
solve:
8.git switch remote warehouse address
Method 1: Modify the remote repository address [git remote set-url origin URL] replacement remote repository address, URL to the new address.
Second way: 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 warehouse
9. Review the address of the remote repository
git remote -v
10. Remove items
Into the project => setting => Danger Zone / delete