GIT uploads local projects to remote projects

If you have a project test locally in advance, and now you want to synchronize to the remote git server, you need to create a test project on the git remote server first.
My coding project address is: https://git.coding.net/lisuke/test.git
What I need to do is:

mkdir test
cd test
git init
echo "# This is a test project!" >> README.md
git add README.md
git commit -m "test: first commit"
git remote add origin https://git.coding.net/lisuke/test.git
git push -u origin master

Guess you like

Origin blog.csdn.net/sukeeeeeeeee/article/details/61195898