01 Git Configuration

git config --global user.name "Your Name"

Set the name that will be attached to your commits and tags.

git config --global user.email "[email protected]"

Set the e-mail address that will be attached to your commits and tags.

git config --global color.ui auto

Enable some colorization of Git output.


02 Starting a Project

git init [project_name]

Create a new local repository in the current directory. If [project_name] is provided, Git will create a new directory named [project_name] and will initialize a repository inside it.

git clone <project_url>

Downloads a project with the entire history from the remote repository.

git rm [file]

Remove file from working directory and staging area.


03 Day-to-Day Work

git status

Displays the status of your working directory. Includes new, staged, and modified files.

git add [file]