Skip to main content

Getting Started

Creating a Git folder

Creating a new folder for a project:

[user@localhost] $ mkdir newProject
[user@localhost] $ cd newProject

mkdir makes a new directory.
cd changes the current working directory.

Initialize Git

Once in the correct folder, initialize git on the folder:

[user@localhost] $ git init
Initialized empty Git repository in /User/user/newProject/.git/

New Git repository created!

info

Git automatically knows to watch this folder for changes.