Git Versioning
Note: Terminal commands are displayed this way
To start practicing Git:

Reverting and recovering changes

If a file (or a whole project) was deleted, we can recover it in two ways:

Git Branching

Branching is creating a new path of version , parallel to the original branch, called 'master'

To create a branch:

git checkout -b newBranchName

To show all the branches:

git branch

To switch between branches(e.g. to master):

git checkout master

To merge a branch into the master branch:

back to main page