I have imported Kirby from github to my private Bitbucket.
And now I want to know if it will be updated itself when there is changes in the original github files of Kirby?
I have imported Kirby from github to my private Bitbucket.
And now I want to know if it will be updated itself when there is changes in the original github files of Kirby?
I assume you used submodules?
In git, there is no âauto-updateâ feature. What you can do, though, is to configure your git instance to automatically update submodules whenever you pull:
git config --global alias.pullall '!git pull && git submodule update --init --recursive'
However, this is not recommended. You should always check the changelog before you update, to avoid breaking the site without realizing it. Thatâs my opinion.
Not really. I look after that and look what I have to change. Thx.
Itâs a little bit complicated, I think.
For the next time I will go another way to update the kirby files.
I use a seperate branches in Bitbucket and make after each update a compare of the files which have a change.
At the moment the thing with submodules is a little bit too heavy.
At the moment I donât really know how to make it.
So I have to find another to update Kirby when I need it.
Topic is solved.
Iâll take the time to explain later if nobody else does it before me. Itâs actually quite easy once youâve understood how it works, but it can be a bit daunting at first. Donât worry though, youâll get it Iâm sure
I use Sourcetree (itâs from the creators of Bitbucket) and itâs a GUI for Git. It will list the submodules under the title âsubmodulesâ per repository
If you click (double) on the kirby or panel repo on the left sidebar
http://imgur.com/brpQG6c
You will go to the repository of Kirby or Panel. From the Master repository, click pull to get the latest changes.
http://imgur.com/q8HnpE7
This Working with Git recipe explains how you can add Kirby and the Panel as submodules to your project.
I can also recommend SourceTree as a free alternative to the paid Tower client.
Thanks for your help.
But now I have something really crazy and have to look if it is better to go on a new starting point.
I think it would be better to make it without a version control system.
This topic is actually too big for me. I donât know where my mistakes are and so I must make it without it.
I have make a last try and use now github.
When I go through the Cookbook of Kirby and make the steps of the article about âWorking with gitâ then I have a folder in github which isnât clickable. Is that right?
That is absolutely how it should be
But it should not make a difference if you use GitHub or Bitbucket or any other service. The procedure is always the same.
Edit: If you would clone your repository from GitHub to your local computer or a remote server now, the Kirby and Panel folders would be empty. What you then need to do, is initialize the submodules in the new repo and then pull them into it. Itâs a bit hard at the beginning, but you will eventually get used to it, I think.
You can just play around with this a bit by cloning your repo from GitHub into a new repo with another name to test how that works.
You donât need to do everything perfectly at the beginning. Starting without version control and then adding it in when you are comfortable with it is just fine.
I donât know where my mistake was but with github it seems to be working well.
I have in my github repo a non-clickable folder names starterkit and on my local machine the complete starterkit for development use.
Actually it seems really good. Why it functions now better as before - no idea.
What do you mean with âright configurationâ? At least, itâs the way a repo with submodules looks like .
Then I have understand something right.
I havenât found other words to describe what I want to know.
BTW: Since you followed the Git recipe, was it helpful as it is or did you miss anything that could be explained in a better way or more extensively?
I think there is nothing missing.
For me it would be better when it is a list with declarations like first step, second step and so on.
But this is my personal opinion and everyone think different.
Thanks for your feedback, Markus