cd to target directory, run the following commands to start using git version control:
# start a local repository
git init
# add all files under directory to git repository
git add .
# commit the current version
git commit -m 'chore: first version'