Git Workflow
30-45 minIntermediate
Version control is essential for tracking changes and safe deployment.
Prerequisites
- Git Installed
- GitHub/Bitbucket/GitLab Account
Beginner Recommended
The Basics
Standard Flow.
1
Initializing
1
- Open Terminal in your project folder.
2
- Run
git init(Creates hidden .git folder).
3
- Create
.gitignore(Ignore node_modules, .env, etc.).
2
Saving Changes
1
git status(See what changed).
2
git add .(Stage all changes).
3
git commit -m "Added SEO meta tags"(Save history).
3
Pushing to Cloud
1
- Create new Repo on GitHub/Bitbucket.
2
git remote add origin https://github.com/user/repo.git.
3
git push -u origin main.
4
Update: When you make future changes, just git add, git commit, git push.
Verification Checklist
- Repo Activity