[home]

How I set-up SourceTree, Git and Unity


listening to: If You Leave - Orchestral Manoeuvres in the Dark.

The way that them tutorials talked about one would think that setting up Unity to use a source control system was easy (in hindsight it is, but for a person who never used any source control before, well it was kind-a hard). Reading and understanding the tutorials was easy. The errors that came with doing the tutorials was not. So Unity advises to use PerForceSCM and that some other thing to use. Being a total stuck-up idiot that I am, I decided not to go with the adviced options and use Git because Git (more like because I see GitHub whenever I see open source software like your supposed to use GitHub, and I just want to look kewl like dem kids hehehe)


GitHub
Did not work out of the box, and I didn't understand what I'm supposed to do; I created a repository, learned commit and push, failed to somehow commit and push, checked my credentials (okay) tried again, looked for more tutorials, got tired please please work, it didn't. Hey maybe I'm stupid and GitHub's interface was really easy to use and I don't know sh*t about using SCM and I shouldn't be talking how hard it is to implement, but I definitely moved on from using GitHub.

Addendum: git commands worked well (The GUI was fucked in my opinion), but I don't really see myself typing 'git commit, git push' or whatever. I like the shell or terminal as much as the next guy, but I'd wager that you'll sooner write a script to automate the process when you have to repeat the same commands every time you want to save that one variable in a function that misbehaves.


(Recommended Software)
Unity recommends other SCM software, looked at their webpages, looked like some corporate thingy, overly complex thingies. Didn't bother to put more software with more than two (free, paid) versions on my software especially if one of those versions contains the words (enterprise, personal, power, special thing, super awesome). Moved one.


BitBucket & SourceTree
BitBucket was okay better than GitHub in the sense that they can have free private repositories (given that my projects are shite and the shame of all well-minded coders out there, I do have the want of privacy). Yay! Creating a repository in BitBucket was easy (GitHub has also a easy way to create repositories it was just the software they used). And in no time I was creating repositories out of the wazoo like I was trying to compensate for the actual lack of any discernible progress the project I was supposed to be using this damned SCM on has.

So okay the tutorial said to create a Repo in your browser and then clone it via SourceTree. Since I already had a Git repo from before(above) I tried to do that, which SourceTree prompty and with all seriousness reports is not a valid Git repo. I checked my sanity, redid all the things again, and again not a valid Git repo.

So okay scratch that, I tried to use the one of the many empty devil spawns I created on BitBucket (how to I delete these damned repos anyway?), loading, loading, loading, some error with number yay!. (I could've searched google for the error code but then again this just occured to me while writing this, silly brain)

So okay, I tried creating in SourceTree itself, works okay, still cloning the shit is a fucking mess of NOT DOING WHAT IT'S SUPPOSED TO DO.

So okay, I resigned and started thinking along the lines of batch scripts (hey they work!), Since I uninstalled GitHub, I have to reinstall Git (SourceTree has it's own portable version of Git which it comes preinstalled with which would factor greatly in this). Looking for links I came across the BitBucket documentation for installing Git on your system. (Which was kinda roundabout way). So I did install git and started typing 'git pull' like I was using a typewriter or something and waiting for fucken blips and blops.

Out of sheer really-no-reason-maybe-try-this, I opened SourceTree and decided to set it up to use the Git I installed instead of the one they supplied.

Guess what, it works now!

Guess what I still do commits for like really small changed and call it something like 'Complete UI overhaul' to sound something smart.

So I guess what I'm trying to say is maybe GitHub after all was the feature rich option, but I didn't understand what to do. SourceTree worked as long as you installed Git yourself, I don't know if it was an error on my part (all bets are it is) but still, it would be nice if the error said something like "Portable Git installation is broken and mangled, get a psychiatrist to get it's shit together" instead of something like "ERRORNUMBERNUMBERUNDERSCORESOMEWORDS". Scripting some nice .bat files for my commits sounds pretty kewl about now but when you wan't to check what the fuck it is you are adding to the commit or check whatever else then fuck you.

Linkies
[SourceTree] (easy to use, you can see easily where you're supposed to go, and what to do)

[BitBucket] (still don't know how to delete those empty repos)

[GitHub] (I still do believe that GitHub has somewhat more shits, I mean it is widely used right?)

[PerForceSCM] (Look at it, I'm just trying to save my project online so the team members can edit in in harmony, not cure cancer)

[The thing in bitbucket that has Git]

[Okay the direct link to Git]




P.S.
There were talks of the pitfalls of Git on binary files exceeding some limit (>5mb I think?), it comes down to Git using ASCII or whatevur to upload these files instead of a binary upload or what-eee-vuuur (I do understand what it means and why it happens) BUT: project is small, binary files I use don't reach 5mb, the Assets folder barely reaches 1mb, so yeah, whhhuuuuttt-eeeee--vvvuuuuhhhrrr.
 

[home]