Use Of Github Desktop

broken image


If you're working on a Unity project on the default, free Unity license, you're only allowed to have a maximum of 3 people (and a storage limit of 1GB) on Unity Collaborate. While you can work around the headcount limitation by adding and removing members as and when they need to make a commit, it can quickly become a tremendous hassle. Hence, for those not willing to pay for a Unity license, a cheap and easy way to go around both the personnel and storage limit is to use GitHub Desktop for collaboration.

GitHub Desktop is a user-friendly way for people to use Git (it is normally accessed through a command line interface). For folks without much experience with source control, GitHub Desktop is a godsend — it allows you to reap the benefits of Git source control without the need to learn its intricacies.

GitHub Desktop Focus on what matters instead of fighting with Git. Whether you're new to Git or a seasoned user, GitHub Desktop simplifies your development workflow. Download for macOS Download for Windows (64bit) Download for macOS or Windows (msi) Download for Windows. By downloading, you agree to the Open Source Applications Terms. In order to use git and GitHub together for version control and collaboration, there are a few steps you'll need to take. Let's take a look at how that process works. It's important to note that you do have to use git in order to take advantage of GitHub, so you'll want to brush up on your skills with the former before trying to.

To start using GitHub Desktop, you first need to sign up for a GitHub account so that you can log in to GitHub Desktop. If you are not prompted to log in after opening GitHub Desktop, go to File > Options and you should get this pop-up that you can use to sign in.

NordVPN Netflix Access. NordVPN is, hands down, one of the best VPNs for Netflix and for streaming access in general. And we're not talking only the US version of the service either. Watching Netflix via NordVPN works well for Australia, Canada, Deutschland, France, Japan, the Netherlands, and the UK. How to Use NordVPN With Netflix. Nordvpn netflix france. NordVPN Provides Access to Netflix for US, UK, France, and Australia The innovations of Netflix took off in the proxy error that every VPN user faces in trying to establish contact with a giant of streaming transmissions. Many VPN providers could not cope with the limitations of. This article is available in French, German, Dutch, Italian, Swedish, Danish, Finnish, Norwegian, Polish, Spanish, Brazilian Portuguese, Japanese, and Korean. This article is updated whenever our configurations change. If you start experiencing any issues with VPN for Netflix, you can come back to this post for updated information.

Creating a GitHub repository

To be able to commit your Unity project onto GitHub, you first have to create a repository on GitHub by going to File > New repository. Then,

  1. Give your repository a name;
  2. Select a place on your computer to save it to (it's just a temporary location, so I recommend putting it on your Desktop), and;
  3. Select any option except None under the Git ignore dropdown.

When your repository is created, you should get a folder with the following contents:

Desktop
Desktop

If you do not see the .git folder, you will need to reveal hidden files on your computer.

Moving Git files into Unity

To turn your Unity project into a Git repository, you will need to transfer the 3 files above into your Unity project folder.

Note that your Unity project folder is not where the Assets folder is. It is the folder above that.

With the Git files removed, GitHub Desktop will say that it can no longer find your newly-created repository. So click on Locate, and select your Unity project folder (where you moved your Git files to).

If you've done everything right so far, you should see a list of all your Unity project files on the left side of GitHub Desktop, as shown below:

Article continues after the advertisement:

Configuring Git ignore

Desktop

Now, before you press the blue Commit to master button, you want to edit your .gitignore file. This file controls what is uploaded into the Git repository, and what is not. Unity keeps a lot of user-specific generated files that you don't want to upload onto the repository, because they are updated every time you open the project, and they cannot be used by other users. So, you want to use .gitignore to exclude these files.

Use

Open the .gitignore file using a text editor, and replace its contents with the following:

These settings will cause GitHub Desktop to commit only the Assets and ProjectSettings folders, as well as the .gitignore and .gitattribute files onto the repository.

Note: If your project happens to use additional Packages (i.e. added with Unity's Package Manager), then you will need to add the Packages folder into your .gitignore too.

Use Of Github Desktop

If you do not see the .git folder, you will need to reveal hidden files on your computer.

Moving Git files into Unity

To turn your Unity project into a Git repository, you will need to transfer the 3 files above into your Unity project folder.

Note that your Unity project folder is not where the Assets folder is. It is the folder above that.

With the Git files removed, GitHub Desktop will say that it can no longer find your newly-created repository. So click on Locate, and select your Unity project folder (where you moved your Git files to).

If you've done everything right so far, you should see a list of all your Unity project files on the left side of GitHub Desktop, as shown below:

Article continues after the advertisement:

Configuring Git ignore

Now, before you press the blue Commit to master button, you want to edit your .gitignore file. This file controls what is uploaded into the Git repository, and what is not. Unity keeps a lot of user-specific generated files that you don't want to upload onto the repository, because they are updated every time you open the project, and they cannot be used by other users. So, you want to use .gitignore to exclude these files.

Open the .gitignore file using a text editor, and replace its contents with the following:

These settings will cause GitHub Desktop to commit only the Assets and ProjectSettings folders, as well as the .gitignore and .gitattribute files onto the repository.

Note: If your project happens to use additional Packages (i.e. added with Unity's Package Manager), then you will need to add the Packages folder into your .gitignore too.

Committing your project

To commit your project onto your repository, you will need to fill in the Summary field, then press the Commit to master button. After that, press the Publish to repository button on the top right.

You (and your collaborators) will have to go through this same process every time you make changes to the project. After the first commit, however, the Publish repository button will become Push origin. Both buttons do the same thing.

To add collaborators to your project, you will have to log in to GitHub, and add the emails of your collaborators so that they can pull the repository down from their GitHub Desktop interface and make their own commits to the project.

R/ FreeNordVPN. Hot New Top Rising. Card classic compact. Pinned by moderators. Posted by just now. R/FreeNordVPN Lounge. Created Apr 13, 2021. Message the mods. View All Moderators. Help Reddit App Reddit coins Reddit premium Reddit gifts. About careers press advertise. Free Games and Programs, full versions of any of applications and games on your android device, and also mod games.the best android tutorial for beginners and experienced with examples.Top Android hacks and applications to turn your smartphone smarter.android hacks games download android tricks and hacks 2020 smartphone hacks and tricks tech hacks android android secrets and tricks. NordVPN encrypts your data, keeps your web activity private and helps to bypass geographic content restrictions online. NordVPN service allows you to connect to 5500+ servers in 59 countries. It offers double VPN encryption, Onion Over VPN and is P2P-friendly, on top CyberSec blocks domains known to be used for phishing. Free nordvpn account reddit. NordVPN Crack can uphold Mac, Windows, and considerably more. Besides, NordVPN Torrent likewise encoded intermediary expansions for Chrome and Firefox. By utilizing NordVPN Serial Key, you can get up to 6devices simultaneously.NordVPN Premium Crack has become our first authority network, protection accomplice. All things considered, everybody can utilize this product with no experience.

Pulling down the project files

This section has been updated on 3 June 2020, as we found a simpler way to open the cloned repository from Unity.

Once the files are uploaded, other collaborators will be able to pull the files down from the repository. The first time will require some basic set-up:

  1. Go to File > Clone repository on GitHub Desktop.
  2. Select and clone your project repository onto the Desktop (if you don't see it, then you haven't been added as a Collaborator).
  3. Open one of the Unity scene files from the project. Unity should automatically compile some files and open the scene (as well as the project) for you. Alternatively, you can open the GitHub folder as a project in Unity.

To test if your set-up is working, make some small changes to your Unity project and see if the changes are reflected inside GitHub Desktop. Once done, you can right-click over the left bar where the changes are listed, and select Discard all changes to undo them.

Use Of Github Desktop Tools

Fetching and making updates

After publishing or cloning your repository, before you do any work on your project, remember to go to GitHub Desktop first, and click on the Fetch origin button in your repository. This updates your repository with any changes your collaborators may have made.

Then, as mentioned above, if you make changes to your project, GitHub Desktop tracks and lists them on the left column of its interface. To commit these changes, you will need to do 3 things:

  1. Fill in the Summary field. You are recommended to write something descriptive here.
  2. Press the Commit to master button, which will make changes to the project on your computer.
  3. Press the Push origin button, which will apply the updates to your project on GitHub.

As a rule of thumb, before any commit, it is good practice to look through at all the changed files. This will prevent you from committing any unintended changes.

Wrapping up

Use Of Github Desktop App

Although source control is a relatively simple concept, it takes a fair bit of trial and error to grasp. If this is your first time setting up a repository, I recommend doing frequent backups of the project (just ZIP up your Unity project folder and store it somewhere). It's not uncommon for files to be lost due to careless commits, or for changes to be overwritten because another collaborator forgot to do a fetch before starting work.

Article continues after the advertisement:

Anyone who uses Git knows that it has a steep learning curve. We've learned from developers that most people tend to learn from a buddy, whether that's a coworker, a professor, a friend, or even a YouTube video. In GitHub Desktop 2.2, we're releasing the first version of an interactive Git and GitHub tutorial that can be your buddy and help you get started. If you're new to Desktop, you can download and try out the tutorial at desktop.github.com.

Get set up

To get set up, we help you through two major pieces: creating a repository and connecting an editor. When you first open Desktop, a welcome page appears with a new option to 'Create a Tutorial Repository'. Starting with this option creates a tutorial repository that guides you through the core concepts of working with Git using GitHub Desktop.

Use Of Github Desktop App

There are a lot of tools you need to get started with Git and GitHub. The most important of these is your code editor. In the first step of the tutorial, you're prompted to install an editor if you don't have one already.

Learn the GitHub flow

Next, we guide you through how to use GitHub Desktop to make changes to code locally and get your work on GitHub. You'll create a new branch, make a change to a file, commit it, push it to GitHub, and open your first pull request.

We've also heard that new users initially experience confusion between Git, GitHub, and GitHub Desktop. We cover these differences in the tutorial and make sure to reinforce the explanations.

Github Desktop App

Keep going with your own project

In GitHub Desktop 1.6, we introduced suggested next steps based on the state of your repository. Now when you complete the tutorial, we similarly suggest next steps: exploring projects on GitHub that you might want to contribute to, creating a new project, or adding an existing project to Desktop. We always want GitHub Desktop to be the tool that makes your next steps clear, whether you're in the flow of your work, or you're a new developer just getting started.

What's next?

With GitHub Desktop 2.2, we're making the product our users love more approachable to newcomers. We'll be iterating on the tutorial based on your feedback, and we'll continue to build on the connection between GitHub and your local machine. If you want to start building something but don't know how, think of GitHub Desktop as your buddy to help you get started.





broken image