GIT 把本地项目上传到远程项目

如果事先在本地有个项目test,现在想同步到远程git服务器,需要先在git远程服务器上创建个test项目。
我的coding项目地址为:https://git.coding.net/lisuke/test.git
我需要做的是:

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

猜你喜欢

转载自blog.csdn.net/sukeeeeeeeee/article/details/61195898