Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James 251 posts 1169 karma points
    Nov 23, 2014 @ 21:30
    James
    0

    Using GitHub on Umrbaco Projects

    Hello All,

     

    Not sure if this is the right place to ask but i always get a good answer to hard not to ! :)

     

    Does anyone have any guidelines or tips/ tricks for using github with Umbraco installations?

     

    I think im using it incorrctly. What files exactly should i be pushing to github. I think im pushing way too many and its causing it to crash.

     

    Could just do with a pointer in the right direction from someone who uses it on their umbraco projects.

     

    Kindest regards,

     

    J

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Nov 23, 2014 @ 22:28
    Jeavon Leopold
    0

    Hi James,

    I would recommend that you have a look at the setup of the Hybrid Framework for v7, I think this project is correctly configured for Git and GitHub.

    Let me know if that's helpful?

    Jeavon

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Nov 24, 2014 @ 08:00
    Nicholas Westby
    0

    What's crashing? At work, we typically host our website files on Bitbucket, which is pretty much the same thing as GitHub. Umbraco projects aren't too special with regard to storing them in git.

    We have some entries in the gitignore, mainly for the temp files (e.g., umbraco.config, anything in the TEMP folder, anything in the "logs" folder, and so on).

    We also exclude the web.config because we set those up differently for each environment. Same for the media folder.

    Looks like the Hybrid Framework Jeavon mentions has similar gitignore entries: https://github.com/jbreuer/Hybrid-Framework-for-Umbraco-v7-Clean/blob/master/.gitignore#L146

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 24, 2014 @ 09:20
    Jan Skovgaard
    0

    Hi James

    Are you using the command prompt when pushing to Github or are you using a GUI tool like sourcetree for instance? I've seen Sourctree act weird in some occasions.

    A tool I find useful for setting up my .gitignore file to make sure irellevant files are not being pushed is https://www.gitignore.io/ You can for instance write "Umbraco", hit enter and write "Visual studio" and hit enter and then hit the "generate" button and then the tools is generating the ignore file for you :) - However make sure to double check the output! :)

    /Jan

  • James 251 posts 1169 karma points
    Nov 24, 2014 @ 10:41
    James
    0

    Hi Chaps,

     

    Thanks for the responses. I am just curious as to which files you push up to Github? I create my projects using visual studio so if i create a repository on my local machine and clone it to one on github thats fine. Then do i create the project inside this folder and push up all?

     

    Kind regards,

     

    James.

  • James 251 posts 1169 karma points
    Nov 24, 2014 @ 10:45
    James
    0

    I use source tree, and if i put my project inside the local repository file. THEN i install umbraco to it. It recognises about 2500+ files that need to be committed then pushed. When i do this, it sort of crashes the SourceTree or Github (I have tried with both) they just sit there and tick over but dont do anything.

     

    I have a feeling i'm being very nooby here. But this si the first time on any projects i'm using software/ git for source control.

     

    Kind regards,

     

    J

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Nov 24, 2014 @ 10:50
    Jeavon Leopold
    100

    Do you have the relevant exclusions in your gitignore?

    # =========================
    # Files in bin folders
    # =========================
    Umbraco.Site/[Bb]in/*
    Umbraco.Extensions/[Bb]in/*
    
    # =========================
    # Umbraco
    # =========================
    Umbraco.Site/App_Data/umbraco.config
    Umbraco.Site/App_Data/preview/*.config
    Umbraco.Site/App_Data/TEMP/ClientDependency/
    Umbraco.Site/App_Data/ClientDependency/
    Umbraco.Site/App_Data/TEMP/ExamineIndexes/
    Umbraco.Site/App_Data/ExamineIndexes/
    Umbraco.Site/App_Data/TEMP/PluginCache/*
    Umbraco.Site/App_Data/TEMP/SEOChecker/
    Umbraco.Site/App_Data/Logs/*
    Umbraco.Site/App_Data/TEMP/Razor/
    Umbraco.Site/App_Data/FeedCache/
    Umbraco.Site/App_Data/courier/revisions/
    Umbraco.Site/App_Data/courier/cache/*
    Umbraco.Site/App_Data/umbraco.licensing.log.txt
    Umbraco.Site/aspnet_client/
    Umbraco.Site/App_Data/*.udt
    Umbraco.Site/App_Data/NuGetBackup/*
    Umbraco.Extensions/App_Data/NuGetBackup/*
    
    # =========================
    # ImageProcessor DiskCache 
    # =========================
    Umbraco.Site/App_Data/cache/*
    
  • James 251 posts 1169 karma points
    Nov 24, 2014 @ 20:55
    James
    0

    Yes i have an ignore file configured for VS and Umbraco. Should i be having problems pushing 60-100mb of files?

     

  • Paul Griffiths 370 posts 1021 karma points
    Nov 20, 2015 @ 20:24
    Paul Griffiths
    0

    Hi James,

    I have been working on an umbraco project locally for some weeks and I'll like to create a repository on bit bucket and push all my files up. I was wondering if you have any steps I can follow and provide me with a list of files I should ignore etc.

    Many thanks Paul

Please Sign in or register to post replies

Write your reply to:

Draft