pedroborges / kirby-autogit

⬢ Saves every change made via Kirby Panel to a Git repository
149 stars 23 forks source link

More complicated setup #18

Closed iskrisis closed 7 years ago

iskrisis commented 7 years ago

Repost https://forum.getkirby.com/t/kirby-auto-git-plugin/4648/34

How to get this setup with other code already in git?

I have structure like this

/ 
/.git
/dev (uncompiled sources)
/htdocs <- is webroot  (kirby, site, content etc)

Beside origin remote i also have live remote that is my server and i deploy by pushing to the live remote. To make this work i have /htdocs/content in .gitignore (the content is only on the server). I always wanted to have content also in git but the setup is baffling for me now.

Is everyone deploying manualy and have just content in the git repo?

Should i just make special branch content and put just content there? That wont work no? Or some setup with content as git-submodule?

iskrisis commented 7 years ago

Oh i just add content as submodule with git init and thats it? Lol.

Seems it works :))

👍