如果事先在本地有个项目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
转载请注明原文地址: https://ju.6miu.com/read-20514.html