I'm very new to Drupal 8 development, although I have built a number of D6/7 sites...
D8 seems to require Composer in many cases. Composer is *entirely* new to me and I'm finding that I'm breaking sites very easily whilst I'm experimenting with it. Therefore I'd like to have a GIT safetynet where I can roll back any disasters!
I want to avoid any cloud services like GitHub for the moment and work entirely locally on my Mac.
I use the Acquia Dev Desktop to create my original sites and provide the working environment. This means that I can't move the original folder once the site is created in the first instance.
How do I set up Sourcetree in this environment?
I think I have set up a new Repo, using the folder the original D8 installation was made into.
Given that this is in effect also the 'Live server' is this a good idea? If not, how else do I set things up?
Do I create a 'Branch' as my fallback 'Safetynet' and then revert to this if disaster strikes?
I'm altogether a bit at a loss on how to start...
Simon
Hi Smartin,
Are you using Git already? The first step would be to convert your code to a Git repository, you can do that following this tutorial.
Once you start using Git, you already have a safety net. Note that Sourcetree doesn't provide an extra layer of security or anything like that, Sourcetree is basically a graphical interface for Git so you don't need to use the terminal. You can also read Get started with Sourcetree.
Let us know if you have any questions!
Ana
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.