Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将我的文件夹和文件上传到我在 GitHub 上的存储库?
我使用了以下请求:
git remote add origin git branch -M main git push -u origin main
但这没有帮助
确保您首先添加/提交了代码:
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