How To Use Git: A Reference Guide

  1. Home
  2. Docs
  3. How To Use Git: A Reference Guide
  4. Contents
  5. Set Up and Initialization

Set Up and Initialization

Check your Git version with the following command, which will also confirm that Git is installed.

git –version
You can initialize your current working directory as a Git repository with init.

git init
To copy an existing Git repository hosted remotely, you’ll use git clone with the repo’s URL or server location (in the latter case you will use ssh).

Was this article helpful to you? Yes No