0

I wrote a laravel package which is being maintained on GitHub. I got a new PC, now I need to clone/download my project in a why that I am able to push/pull changes to my GitHub repository using the command-line.

I created a new SSH key as the documents describes. I tried to download the project with the prefer-source option like this composer require vendor-name/project-name:dev-master --dev --prefer-source

Then, I changed my directory to vendor/vendor-name/project-name. When I tried to do git status just to see if the command works, I got the follow error

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

How can I download a maintainable copy correctly?

I always struggle when using git. I will appreciate a descriptive answer on the right way to download a maintainable project.

Junior
  • 11,602
  • 27
  • 106
  • 212

1 Answers1

0

its occurred cause no git detected if you use window 7, to check it if have git go to your

project->organize->folder and search option->view

unchecked hide empty drives in the computer unchecked hide extensions for known file types click show hidden files

try to git remote your project

Sample:

git remote https://[email protected]/masterishere/onlineaaaa.git

Mathew Magante
  • 1,280
  • 3
  • 19
  • 28