![]() Once the Bitbucket account is created, the next step is to create an empty repository. Learn more about creating a Bitbucket account from this link. ![]() The sign-up process is quite easy and it can be done by logging with Google account or creating a new account with e-mail and password: The first step is to create an account on Bitbucket if it’s not already created. In order to prepare the “communication” between Git hosting service and your application, the following steps need to be performed: Wow! That has been a long blog post – I hope somebody finds this useful someday.For the purpose of this article, Bitbucket is chosen as a Git hosting service. The “file contents” section will allow you to see individual code changes you’ve made and be able to refer back to them as you go along. ![]() That’s it – Sourcetree is set up! Now I recommend after major changes going into source tree and committing these – ideally at least daily – to track the changes in your project. Now by clicking on the History tab, under Workspace, you’ll be able to see the (very short) history of your project! “Initial Commit”) before clicking the Commit button in the top left hand corner of Sourcetree. Then returning to Sourcetree we’re ready to commit the changes! Click on the tick box next to “Unstaged files” and then type a commitment message (e.g. Paste this in using text editor and save the file. You can open and edit this using Text Editor, and then I recommend adding in a standard code provided at the following link: gitignore file the Sourcetree is now using. Now if you go back to Finder, in the unity game project folder that you’ve created, you’ll find the. Now in the following screen select “Ignore everything beneath” – Library (ensure it’s in this repository only) and click ok. Eventually we will be committing these changes to accept them into the project, but for now, find an item that starts with “Library/” and right click to select “Ignore file”. Once inside you’ll see a large amount of “uncommitted changes”. Now that we’ve linked up SourceTree to the project, you’ll see it appear like this:ĭouble click the project to enter the Git repository. This means that we need to ignore changes in this folder, something we’ll set up shortly in the form of a “.gitignore”. This actually doesn’t serve a purpose for us, only for Unity to quickly build your project (more info here: ). You’ll notice within here there is a folder called “library”. Next you’ll be prompted to find the location… just click the “…” button and navigate to your Unity created folder structure. ![]() When it’s open, right click in the white space and select “New…” and then “Create Local Repository”. On opening Sourcetree you’ll then need to make sure your account is signed in (check under “sourcetree” then “preferences” if not prompted). Ok! Once the software is installed you can create your Unity project as normal and save this to somewhere in your documents folder. Before using Sourcetree you will need to sign up for a free Atlassian account (the company that owns Sourcetree). Other options are available of course but I know this one is fairly industry standard and therefore thought it would be the best one to get to know. Although for now I must say that I am satisfied with being able to monitor code changes etc that I make in my projects (and then manually reverting select elements if I need to).įirstly you need to download and install the Sourcetree (Git repository management application) from the below: So I thought I’d share some key points for how to do this.Ī quick note: I haven’t set this up for reverting to previous versions/changes which obviously could be an even more powerful tool – if anybody has advice on how to do this please let me know. Thankfully, that’s where Git repositories come in! I found it quite difficult to set this up at first – perhaps due to using a Mac. Sometimes a small code change can ruin a core element of a game, and day to day it can be difficult to know what exactly changed and where since your previous saves. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |