Table of Contents
git init
git status
git add <filenames-with-spaces>
# OR
git add .
git reset <filenames-with-spaces>
# OR
git reset
git reset --hard
git commit -m "commit message"
# use -am to add and commit in one step
git log
# path to a specific file
path/to/file.txt
# files with same name
file.txt
# files with a specific extension
*.txt
# all files of a specific folder in a specific path
path/to/folder/*
# folder in the root of the repository
/folder