GIT: Git Basics
Learn Git Basics in GIT with practical examples.
GIT — Git Basics
Overview
Git is a version control system to track changes in your code.
What you'll learn
- init repo
- status
- add/commit
- remote push
Syntax
git init
Example
git init
git status
git add .
git commit -m "first commit"
# link remote
git remote add origin https://github.com/user/repo.git
git push -u origin main
Notes
- Commit small logical changes.
- Write clear commit messages.