4IT580: Docs
4IT580 WebGitLab

Git cheatsheet

Git is a distributed version control system.

TypeScript error

Recommended VS Code extensions

Git commands

clone

Create a local copy of a remote repository

checkout

Switch to an existing branch

branch

Create a new branch

status

Check status of the current working tree and staging area

add

Add a file to the staging area

commit

Commit changes

fetch

Download the latest contents from a remote repository

pull

Update local branch to the newest commit from remote repository

push

Push committed changes to remote repository

merge

Merge changes from a branch into another branch

rebase

Reapply commits on top of another branch

clean

Remove untracked files from the working tree

reset

Discard local changes

revert

Revert existing commit and create a new commit to record them

Links