Git主机丢失

Git主机丢失,git,Git,嗯,我用git在一个文件夹中创建了一个新的repo,其中有一堆预写的源代码,但现在当我尝试推送它时,没有“主”文件。帮助。您需要提交目录的内容以创建初始提交: git add . git commit -m 'Initial commit.' 否则Git将无法推送任何内容。您需要提交目录的内容以创建初始提交: git add . git commit -m 'Initial commit.' 否则Git将无法推送任何内容。您完成了初始提交吗 git add . git commit -m "

嗯,我用git在一个文件夹中创建了一个新的repo,其中有一堆预写的源代码,但现在当我尝试推送它时,没有“主”文件。帮助。

您需要提交目录的内容以创建初始提交:

git add .
git commit -m 'Initial commit.'

否则Git将无法推送任何内容。

您需要提交目录的内容以创建初始提交:

git add .
git commit -m 'Initial commit.'

否则Git将无法推送任何内容。

您完成了初始提交吗

git add .
git commit -m "Initial commit"
git push -u origin master

您是否完成了初始提交

git add .
git commit -m "Initial commit"
git push -u origin master