I am new to GIT and I am struggling with it. I have a website that is stored in a repository Website requires a Theme folder which is setup as a separate repository.
I have used the git submodule add command to successfully add a theme repository to my website.
So now I have a website report with a theme readro files for the subdomain are displayed inside my website folder.
I am trying to reprint the whole main website on a remote server which works, but the files of the subject do not push the submodule like an independent respository - it's something Do not even know whether it has been included as a subdomain or not.
The parent repository does not know that much about everything - just where It should be in the tree, which submodule should be in it and which URL should be cloned at the beginning ...
I don you think there is no such order that all your subdomains should be sent to your Push for - When you update some files, the investment should be sequenced A:
cd theme # [Change or add some files, etc.] # Now make those changes: git commit -a # Push them to the original branch, you are in the master branch: the guit Push to the original master # parent repository: Create a comment with the new version of the theme: git add theme git commit -m "Creating a new version of theme submission" # Now push the commitment in which the parent's store Includes a pointer to the newer version # version: git push origin master The general problem here is emphasizing a commitment in the parent repository, which refers to a subduul version that you "pushed" with the submodule version yet. You may be able to make the script so that you do not forget any of those steps.
Comments
Post a Comment