Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
273 views
in Technique[技术] by (71.8m points)

fatal: Not a git repository (or any of the parent directories): .git

I got the following when I try to git push to heroku

fatal: Not a git repository (or any of the parent directories): .git

I try to follow ruby on rail tutorial book.

I think I installed the client heroku package(by downloading from heroku website and follow their instruction to install, GUI format installation). So my client side heroku should be ok (I am new to programming , so not sure if saying by this term is correct or not).

Then I open a new terminal and key in

git push heroku master

I got

fatal: Not a git repository (or any of the parent directories): .git

Can anyone good at this explain which part I missed? i.e. have to move to some directory first?

Please show me the command since I might still have no idea without command.

PS: I think I have repository in my github already.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

you aren't on a git repository directory.

type pwd and make sure it's where you think you should be. chances are you are in ~/ or something just before the directory you think you are in.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...