- Home /
Version control and Monodevelop
So recently I've started the process of getting some of my projects under version control. I've only been versioning my code and not my binary project assets. I noticed that Monodevelop has support for git in the editor which would be perfect for my workflow!
However I cannot for the life of me figure out how to get it setup correctly. All of my code lives in my dropbox. I am unclear as to how to point monodevelop at a local git repository as opposed to a remote one over ssh/http(s).
Answer by TonyLi · Sep 13, 2013 at 02:07 PM
I always use these instructions: http://www.lanoiadimuu.it/2012/08/git-unity3d-and-dropbox/
I put the entire Unity project under version control so it picks up changes to assets, too, not just Monodevelop code. I set this up quite a while ago. There are products on the asset store now to make version control easier. I haven't looked at them.
My .gitattributes file is fairly long because I try to enumerate all the file types so git knows which ones to handle as text and which as binary.
My working project is in a local, non-Dropbox location. I've read about performance issues (compilation) with keeping your working project in a Dropbox location. My git repository is in Dropbox.
And I've tested the repository set up using the instructions in the link above, so I know it actually works. :-) You'd be surprised how many people set up version control or backup systems and have never verified to make sure it actually works....
Thanks for the advice! But what I'm actually interested in is being able to leverage the git integration into the monodevelop client itself. I have a git rep with all my code in it living in my dropbox alread. Unfortunately this requires me currently to go inot the cli or open a secondary client in order to update, diff, pull etc. I noticed that monodevelop has a version control UI built right into it. However I don't use https:// or even ssh / or git:// to access my repo, I am just using the git client on my local machine and I am unsure how to point monodevelop to a git repository that just lives at a file system location.
Looks like you can select file from the Protocol drop-down.
Another option, if you have Unity Pro, is Git UniTEA$$anonymous$$. Admittedly, it's not $$anonymous$$onodevelop-integrated, but (even better for Unity projects in my opinion) it's Unity-integrated.
Your answer
Follow this Question
Related Questions
How to increment a Version string everytime Unity is built? 3 Answers
MonoDevelop (Mac OS X): Git Add-In crashes 0 Answers
Can't drag and drop prefabs made by other people on my team (Git/Git LFS) 0 Answers
.gitignore not ignoring Library. What's the correct way to do it? 1 Answer
Unity Version Control - missing scene files and materials when downloading or cloning. 0 Answers