How to submit a local git repository to an empty github repo?
$ git remote add origin https://github.com/username/YourRepo$ git push origin mainUsername for 2026-11-2 22:30:33 Author: acassis.wordpress.com(查看原文) 阅读量:20 收藏

$ git remote add origin https://github.com/username/YourRepo

$ git push origin main

Username for 'https://github.com': username

Password for 'https://[email protected]':

Enumerating objects: 940, done.

Counting objects: 100% (940/940), done.

Delta compression using up to 16 threads

Compressing objects: 100% (935/935), done.

Writing objects: 100% (940/940), 1.82 MiB | 3.74 MiB/s, done.

Total 940 (delta 720), reused 0 (delta 0), pack-reused 0

remote: Resolving deltas: 100% (720/720), done.

To https://github.com/username/YourRepo

* [new branch] main -> main


文章来源: https://acassis.wordpress.com/2026/11/02/how-to-submit-a-local-git-repository-to-an-empty-github-repo/
如有侵权请联系:admin#unsafe.sh