初始化空的 git 存储库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11476600/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 07:13:20  来源:igfitidea点击:

initialized empty git repository

githerokuversion-control

提问by SureshKumar Vegesna

i tried first sample Facebook App on Heroku in this command prompt i write like this

我在这个命令提示符下尝试了 Heroku 上的第一个示例 Facebook 应用程序,我是这样写的

1)$git remote  
2)$git remote add heroku [email protected]:stellent.git

responses like this

像这样的回应

not a repository (or any of the parent directories): git

i enter $git initresponse is

我输入$git init响应是

initialized  empty git repository in C

Is there any way to find correct responces

有没有办法找到正确的反应

thanks for advice

谢谢你的建议

采纳答案by Adam Dymitruk

create a directory and go into it:

创建一个目录并进入它:

mkdir project
cd !$

initialize this as a git repo

将其初始化为 git repo

git init

now you can run your remote commands

现在你可以运行你的远程命令

回答by Jon Mountjoy

Did you clone your application first? If you did, it would have created a directory - issue the git remotecommand while in that directory. I'm guessing you're following the instructions here?

你先克隆了你的应用程序吗?如果你这样做了,它会创建一个目录 -git remote在该目录中发出命令。我猜你是按照这里的说明做的吗?