I installed the Yii2 basic template on my web server, and all is working fine- but it is not clear to me how to now set up the version control environment for the basic template. I am using bitbucked/hg. my questions are
does anyone have an example of a generic .hgignore file for the yii2 basic template that i could copy to get me started.
could someone explain how then to set up the version control environment- in particular, how to populate my bitbucket repository with the basic template i installed on my server. if my web repository has a properly configured .hgignore file, then i am guessing that a push to the central repo will leave out required template folders (like runtime, assets?), thus when i pull or clone the central repo locally, the template files will be incomplete and not work locally on my pc. So, what do i do, and in what order to set up the VC environment after i have installed the yii2 basic template on my web server? I assume this is very simple and that i am missing the obvious, but I am new to all this so have mercy…
thanks, i will look at .gitignore and your code- good idea.
how about the second part of my question- how do i push the files to bitbucket repo without .hgignore removing needed files- can you help me with this?