Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

How to use git?

Discussion in 'External Tools' started by RxGian, Nov 6, 2019.

  1. RxGian

    RxGian

    Joined:
    Mar 21, 2018
    Posts:
    62
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    6,249
    "How to use git?"
    Good starting point is from downloading, installing and running it first.
    Have you clicked that Git link?
     
  3. RxGian

    RxGian

    Joined:
    Mar 21, 2018
    Posts:
    62
    I have installing git and i don't know the mean "added to your path"
     
  4. Xarbrough

    Xarbrough

    Joined:
    Dec 11, 2014
    Posts:
    546
    After you have installed git, you need to add its install location to the PATH variable of the environment variables of your users computer (or for all users). You can find tutorials online by searching for "how to add git to path variable".

    The reason why you need this, is because the 2D-Extras package wants to be downloaded via the Unity Package Manager, which in this case, uses GitHub to store the source code and hence git to download the data. The Package Manager needs to know how to use git on your computer because it is not bundles with Unity. Therefore, you need to somehow tell Unity where to look for the git executable. This is done by storing the path to git executable in a system-wide store on your computer called the "PATH" variable, which usually contains multiple entries for different applications.
     
    RxGian likes this.
  5. RxGian

    RxGian

    Joined:
    Mar 21, 2018
    Posts:
    62
    I found a tutorial git with environment variable, is that PATH variable?
     
  6. Xarbrough

    Xarbrough

    Joined:
    Dec 11, 2014
    Posts:
    546
    Yes, sounds good. The PATH is one of the environmnent variables.
     
  7. RxGian

    RxGian

    Joined:
    Mar 21, 2018
    Posts:
    62
    Oh thank you. It's definitely works!