Creating Git Repo Locally
Go to an empty directory and run:
Adding files to Git Repo
Create a file README.txt with some test contents
If you do 'git status' the README.txt file will be shown as un-tracked file.
git add README.txt
To add all files in a directory:
git add .
To add only modified files:
git add -u
You can commit messges as: git commit
It is always a good practice to commit with a meaningful message about the change:
git commit -m "My commit message"