My second post today, but I'm really lost :-D i just started with version control, specifically GitHub. I was looking around and trying to understand what the best way is and I ended up with this:
Install Umbraco locally, add to version control and Ignore everything but my views and css folder, where I do all of my "work". I also installed uSync to synchonize the database with the live server.
I made some changes, created some document types, templates and partial views.
Now I want to move my work onto another computer:
I installed Visual Studio
Installed GitHub Extension
Created a new project
Downloaded Umbraco via NuGet
I went through the initial Umbraco install
And now I want to synchronize it with GitHub. How? If i want to clone the repository to my project folder, it says that the folder is not empty. When i choose a different folder, it doesn't update the project.
How exactly would I go about doing this? In time, I want to use GitHub to also update my live website - is that even possible? Is it a good idea or are there better solutions?
You can create an empty folder and map it to github then copy your existing Umbraco site on to it. You can further ignore folders that you don't want to add. I would say also add App_Code (for any controller), scripts, css, views.
We also create an Assemblies folder and add any dll that is not installed via Nuget. May not be required for simple project.
Live release is fine with github. Although you need to copy ignored folders on to server.
Version control and workflow
Hello guys.
My second post today, but I'm really lost :-D i just started with version control, specifically GitHub. I was looking around and trying to understand what the best way is and I ended up with this:
Install Umbraco locally, add to version control and Ignore everything but my views and css folder, where I do all of my "work". I also installed uSync to synchonize the database with the live server.
I made some changes, created some document types, templates and partial views.
Now I want to move my work onto another computer:
And now I want to synchronize it with GitHub. How? If i want to clone the repository to my project folder, it says that the folder is not empty. When i choose a different folder, it doesn't update the project.
How exactly would I go about doing this? In time, I want to use GitHub to also update my live website - is that even possible? Is it a good idea or are there better solutions?
You can create an empty folder and map it to github then copy your existing Umbraco site on to it. You can further ignore folders that you don't want to add. I would say also add App_Code (for any controller), scripts, css, views.
We also create an Assemblies folder and add any dll that is not installed via Nuget. May not be required for simple project.
Live release is fine with github. Although you need to copy ignored folders on to server.
You can add the github repository as a remote via the console, and push your changes to github, after adding the remote.
Here is a link to the help page from github, with instructions on how to add a remote: https://help.github.com/en/articles/adding-a-remote
is working on a reply...