第一步:Coding創(chuàng)建代碼倉庫(略)
第二步:本地創(chuàng)建文件夾,終端進入該文件夾下。
第三步:執(zhí)行命令:git init
第四步:在該文件夾下創(chuàng)建內(nèi)容
第五步:執(zhí)行命令:git add .
第六步:執(zhí)行命令:git commit -m "first commit"
第七步:執(zhí)行命令:git remote set-url origin https://e.coding.net/------.git
第八步:執(zhí)行命令:git push -u origin master
如果在第八步出現(xiàn)如下圖:使用?git pull --rebase origin master 命令。
實在不行強制提交:git push -u origin master -f
第一次提交需要輸入該倉庫的賬戶密碼。
。。