https://trello.com/b/Cm3yiK7R/git
Clean console:
clean
- Enter a folder and initiate git with
git init - Check status of the git project
git status
Before commit we have to move the files to the git area with
git add .
or
git add index.html - Then we commit with
git commit -m “changes”
or
git commit -a
To go to a previous version run git status to check the (hash?) of the commit you want to revert back

Then run
git checkout abf1eae284…..
and the project will be back to this state.
If you want to go to latest commit (master) run
git checkout master
To see the branches (ramas):
git branch
(the branch where we are currently working on is marked with *)
To create new branch:
git branch testing
To move to another branch:
git checkout testing