I am fairly new to git and have the following question:
I am developing a HTML/JS application. For the Backend I want to share the same codebase as the frontend (libs like jquery, a stub index.html, several helper files, standard css)
So i want to inlude the codebase repository and have an own repository for all changes on top (3 repositories alltogether: 1 codebase, 1 frontend, 1 backend). Like an application skeleton. Is this achievable with submodules? I want to have the possibility to push changes to the codebase or the project repository.
For example:
public/
|_ index.html
|_ css/
|_ styles.css
If I change the index.html to include a js lib to use with the codebase I want to be able to push to the codebase. If I change the title Tag of the index.html I want to be able to push that change to the projects repository and leave the codebase unaffected.