What is the best practice to push Camunda project into Git?

We’ve just started a new project using Camunda and downloaded camunda tomcat-distributive. Also, we changed some recourses in \webapps\camunda\app\tasklist and added some listeners into lib folder. Works fine, but we faced a problem, how to push correctly into Git (we using Bitbucket). For now, we just have a repo with tasklist and lib separately and if we need to make changes on server, we just pull code from git repo and copy-paste code into right folder.

Can you advise more suitable solution for this?
Are there any opportunity, for example, to pull the whole server structure into git?
I also tried to use camunda for spring boot, but it doesn’t provide the same structure (can’t see tasklist, cockpit folder and etc.)