Statweb

Modules, learn HTML&CSS

Learn how to use Git

Easily keep track, store and manage your code online.

Work together on team projects with one single code base.

Use the command-line interface, GitHub Desktop or extentions like Git supercharged for Visual Studio code to make life easier.

Git Logo

Commands

Change directory

$ cd path-here

List files current directory

$ ls

View history of changes

$ git log

Initialize empty git repository

$ git init

Get brief summary of the situation

$ git status

Add all files to staging area

$ git add .

Commit files to local repo

$ git commit -m 'what did you do?'

Clone existing repository

$ git clone 'url-here'

List all branches

$ git branch

Make new branch

$ git branch branchname-here

Switch between branches

$ git switch branchname-here

Merge branches

$ git merge branchname-here