I use IDE PhpStorm. I need to deploy a project (there is a * .zip), upload it to a private repository on GitHub and upload it to the server.

I hooked up everything, cloned the empty repository, uploaded the unzipped * .zip into it, doing a push, then a pull. But nothing happens.

Can you tell me how this is done correctly?

  • 3
    and commit before pushing done after they filled the archive? - Zoltan Toth

3 answers 3

First you need to "commit" changes to the repository. You cloned, empty repository ---> unpacked your archive there. Now:

git add. - add all new files to the git index. (depends on php storma settings, it can automatically add files to the index if they appear in the monitored folder)

git commit -m "your commit description" - (ctrl + k) make commit.

git push origin - (ctrl + shift + k) send changes to github

    He himself recently dealt with Git in PyCharm, but these programs have one structure.

    Create a project, unpack files into it, and then, when your project is ready, go to VCS -> Imropt into VC -> Share Project on GitHub .

    In the window that appears, you can specify the name of the new repository, as well as make it private. After creating the repository, a window will appear prompting you to push. Enter the commit text and click Commit and Push

      Create project from version control Add your files, then: 1. Commit 2. Pull 3. Push

      • Try to write more detailed answers. Explain what is the basis of your statement? - Nicolas Chabanovsky