Using git for version control

git init
git status
git add <filename> # to staging area
git commit -m "some message"
git diff <fimename>
git tag <tag name>
git reset --hard <id>