> For the complete documentation index, see [llms.txt](https://volki.gitbook.io/git-started/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://volki.gitbook.io/git-started/project/setup.md).

# Setup

## [Fork the Repository to Your GitHub Account](https://help.github.com/en/articles/fork-a-repo#fork-an-example-repository)

* In the top-right corner of the [Git-Games repository](https://github.com/Volki312/Git-Games.git), click the **Fork** button.

<div align="left"><img src="https://2292434843-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LaEslFOHnOCsJzkfPUF%2F-LaN5FCfoMTJ3bF8eCqf%2F-LaN67WX5uRvY3gDtzYc%2FGit-fork.bmp?alt=media&amp;token=39fdd1df-6611-4ad2-b225-7fb8031cb6de" alt=""></div>

## [Create a Local Clone of the Repository](https://help.github.com/en/articles/fork-a-repo#keep-your-fork-synced)

* On GitHub, navigate to your fork of the Git-Started.
* Under the repository name, click **Clone or download**.
* Copy the link provided.

<div align="left"><img src="https://2292434843-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LaEslFOHnOCsJzkfPUF%2F-Lay4j-_btRV7_IuadYQ%2F-Lay74cLS18U5kfMwS_w%2F4.bmp?alt=media&amp;token=31c4f2c7-d745-44e4-989c-7b5dd2e4e262" alt=""></div>

* On your local machine navigate the Git Bash where you want your Git-Started folder to be.
* You can do that either by:
  * Typing a command `$ cd ~/desired/output/path` in Git Bash terminal.
  * Navigating through your folders and right-clicking where you want your game added, then selecting an option **Git Bash Here** in the displayed menu.
* In Git Bash terminal execute a command:

  ```bash
  $ git clone linkYouCopiedEarlier
  ```

{% hint style="warning" %}
Skip the next step if you will play a singleplayer game!
{% endhint %}

## [Add a Player You Want to Play Against](https://help.github.com/en/articles/inviting-collaborators-to-a-personal-repository)&#x20;

* In your browser navigate to the *linkYouCopiedEarlier*
* Under your repository name, click **Settings**.

<div align="left"><img src="https://2292434843-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LaEslFOHnOCsJzkfPUF%2F-Lay4j-_btRV7_IuadYQ%2F-Lay77zSOvPRElnLA3wD%2F5.bmp?alt=media&amp;token=c46a689e-373c-46ce-8f33-608857f8f89d" alt=""></div>

* In the left sidebar, click **Collaborators**.

<div align="left"><img src="https://help.github.com/assets/images/help/repository/user-account-repo-settings-collaborators.png" alt=""></div>

* Under Collaborators, start typing the collaborator's username.
* Select the collaborator's username from the drop-down menu.
* Click **Add collaborator**.
* The user will receive an email inviting them to the repository. Once they accept your invitation, they will have collaborator access to your repository.
* Another player should [Create a Local Clone of the Repository](https://volki.gitbook.io/git-started/project/setup#create-a-local-clone-of-the-repository) as well, but clone your forked repository instead of the original Git-Started repository.
