Engineering Full Stack Apps with Java and JavaScript
Creating Git Repo Locally
Go to an empty directory and run:
git init
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.
Run:
git add README.txt
Notes:
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"