1 Git init
- Initializing a repo locally
mkdir gitflix
cd gitflix- Initiating the repo
git init2 Git Add
- Create a sample markdown file called
readme.md
touch readme.md- Use
git statusto see the staged and modified changes
git status- Add the changes
git add .- Use
git statusto see the staged and modified changes
3 Git Commit
- use
git logto see the current logs - commit the staged changes
git commit -m "<commit message>"Start your commit message with
A:
-
use
git logto see the current logs -
Edit the
readme.mdand add the things below
# Contents
- Stage and commit the changes, start your commit message with
B:
git add .
git commit -m "B: Add heading to readme"