Skip to content

How To Clone

Amos Chua edited this page Jan 8, 2021 · 4 revisions

Tools Needed:

  • Option 1: Git - Version Control Software
    • You can use the following command: choco install git if you are using Chocolatey to manage your software
    • Otherwise, install using the instructions from the Git Website
  • Option 2: GitHub Desktop/Sourcetree/GitHub CLI - Git Desktop Client

Step 1: Install any of the tools mentioned above

Step 2: Clone the repository

Option A: GitHub Desktop Route (GUI)

  • Make sure you have GitHub Desktop installed
  • In the toolbar, click File -> Clone repository...
    • Alternatively use the keyboard shortcut Ctrl+Shift+O
      GHDtab
  • Click on the URL tab, and paste in https://github.com/TEAM-SPIRIT-Productions/Lapis
    GHDclone
  • Set the Local path as the folder where you want the bot source code to be stored
  • Click Clone

Option B: Sourcetree Route (GUI)

  • Make sure you have Sourcetree installed
  • In the toolbar, click File -> Clone/New...
    • Alternatively use the keyboard shortcut Ctrl+N
      STtab
  • In the Source Path/URL field, paste in https://github.com/TEAM-SPIRIT-Productions/Lapis
    STclone
  • In the Destination Path field, select the folder where you want the bot source code to be stored
  • Click Clone

Option C: Command Line Route

  • Make sure you have Git installed
    • You can use the following command: choco install git if you are using Chocolatey to manage your software
    • Otherwise, install using the instructions from the Git Website
  • Navigate to the folder you want to use
    • E.g. cd server_tools/my_bot
  • Clone the repository
    • HTTPS: git clone https://github.com/TEAM-SPIRIT-Productions/Lapis
    • SSH: git clone git@github.com:TEAM-SPIRIT-Productions/Lapis.git
    • GitHub CLI: gh repo clone TEAM-SPIRIT-Productions/Lapis
      CLIclone