![]() There are ways to setup the remote while initializing but we will add the remote ourselves. Take your existing unity project and open up GitKraken. It is mostly the same if you are just starting with source control and have an existing project. Now that you have source control remember to commit and push often! 2. Now that you pushed your code, your repo should look something like this. Now that we have the files we want, we need to commit our changes and push to the remote. gitignore file in the unity project folder. There are a lot of extra files unity uses that clog up our repo and makes downloading it slow. Now, before we commit these files, we need to add a. In order to have it at the same level as the git repo, you will need to setup the unity project before connecting to the Github remote. This will create the unity project one folder level in the git repo folder. Go ahead and select the folder to create it in. Next up, we are going to create a unity project in the repo. This happens if you did not setup a readme file on Github. Once it's ready, it may ask you to initialize the repo. Here, in GitKraken, we have Github connected so it can list your projects and ask you where to download it to. Once you have the project setup in Github, clone in using your git tool. On the top right of the page there should be a plus button where you can hit new repository. To start, we are going to create an empty Github project. Repo first or existing Unity project first. We will be using Gitkraken with Github connected. Provided by Github, a simpler visual git editor. Check it out if you use or like Sublime Text. It's not bad if you keep your changes down to a few files, but at this point I'm accustomed to browsing changes by their folder structure. The only downside for my usage is it does not have a tree view of file changes and instead shows all changes in a flat list. It's free to try and then a flat $99 for a perpetual license. Sublime Merge is new as of October 2018 and is very good. My main issue with it is it slows down with larger projects or at least it use to. I haven't used it in a while but SourceTree handles git projects well and is free.Īlso by Atlassian, it integrates well with BitBucket. It has a yearly subscription for the pro features, so keep that in mind if you plan on using it. Profiles are handy so you can commit with your personal or work email. The free version limits you to one account email and name versus the pro version. It has a lot of features that I like and is usually fast. I do have to revert to the commands every once in a while to fix things, but for the most part I use visual GUIs. There is a lot of documentation so if you plan on using the command line, read up. Once the install is done, you should be able to open the command line or powershell and type in git -version and get something like This is the usual way to use git, but I personally use visual editors for commiting and pushing to remote repos. įollowing the instructions, it will setup defaults and access to git from the command line. Easy to manage private organizations and repos.įor windows, we can grab the download right from the git website.Gitlab has many of the same features of Github. There are a lot of open source projects hosted here and a good place to collaborate with others. The most popular online git management website. You will want a place to push your projects to so check out these online resources. There are other version control systems like subversion but Git is the most popular and widespread. Pulled from the site, "Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency." I will cover installing git on a windows environment, using online repositories (repos) and getting a Unity game setup with git. Source control can be daunting but it is pretty important for sharing with others and backing up to prevent data loss. Using Git with Game Development Skip to main content Inconsistent Software Top level navigation menu
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |