1, the git init
Git remote add origin git remote add origin git remote add origin
Git pull origin master
6, Git push origin master to push the contents of the local library to the remote. After this command is executed, you are required to enter the user name and password. After the authentication succeeds, the upload starts.
If an error
hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: ‘git pull … ‘) before pushing again. hint: See the ‘Note about fast-forwards’ in ‘git push –help’ for details. Git push -u origin master -f
That’s it!