I tried a lot to compile my ArduPilot(got this code from GitHub) code using different method.
This code is written in C++ language.
I just want to create a make file to get .hex file but everywhere I have got same problem
fatal: Not a git repository (or any of the parent directories): .git
I am doing work in Mac OS so how can I avoid that error message?
Just to be sure: if you create a file, you should not create in the .git/ folder itself, but in its parent folder:
myrepo
yourfile <===
.git/
The .git/ folder include git data/metadata representing your git repo.
The parent folder is the working tree of the repo.
If you don't have a .git/ folder in "myrepo", type git init .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With