Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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?
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
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! :)
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?
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.
Do you have the relevant exclusions in your gitignore?
# Files in bin folders
# ImageProcessor DiskCache
Yes i have an ignore file configured for VS and Umbraco. Should i be having problems pushing 60-100mb of files?
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted