1

如何将我的文件夹和文件上传到我在 GitHub 上的存储库?

我使用了以下请求:

git remote add origin
git branch -M main
git push -u origin main

但这没有帮助

4

1 回答 1

0

确保您首先添加/提交了代码:

cd /path/to/my/local/repository
git switch main
git add .
git config --global user.name <your-GitHub-Username>
git config --global user.email <your-GitHub-User-Email>
git commit -m "First commit"
git push -u origin main
于 2021-09-22T06:33:42.357 回答