LearnHub
Back to Tutorials
Tools

Git & GitHub

Track code changes and collaborate with version control and remote repositories.

Git is a version control system that records changes to your files. It lets you revert mistakes, compare versions, and collaborate with others.

Common Git commands include init, add, commit, status, log, branch, merge, and push. A typical workflow is: make changes, stage them, commit, and push to a remote.

GitHub is a hosting service for Git repositories. It adds tools like pull requests, issues, and project boards to help teams work together.

Practice by creating a local repository, committing a small change, and pushing it to a GitHub repository. This workflow is essential for modern web development.