可以使用git命令将本地代码仓库推送到远程仓库中。
步骤如下:
$ mkdir myproject $ cd myproject $ git init
$ touch file1.txt file2.txt $ git add . $ git commit -m "Initial commit"
$ git remote add origin
$ git push -u origin master
以上步骤完成后,本地代码仓库的文件就会被推送到远程仓库中。
上一篇:本地代理转发下基本身份验证无法工作。
下一篇:本地代码方法返回undefined而不是字符串