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.