Git and GitHub basics for students
Why version control matters and the handful of Git commands every student developer and data scientist should know.
- Git tracks changes so you can experiment safely
- GitHub is where you share code and collaborate
- Commit small, meaningful changes with clear messages
Git is the tool developers and data teams use to track changes to code. GitHub hosts Git projects online so people can collaborate and share. Both are expected in most tech jobs.
git clone <repository-url>
git checkout -b feature/sales-chart
git add analysis.ipynb
git commit -m "Add monthly sales chart"
git push origin feature/sales-chartWhy it matters
Git lets you go back to earlier versions, try ideas on separate branches and work with others without overwriting each other's work.
The basic workflow
- 1Pull latest
- 2Create a branch
- 3Make changes
- 4Commit
- 5Push and open a pull request
Writing good commits
Commit small, related changes together and write messages that explain what changed, such as Fix date parsing in sales report rather than update.
GitHub as a portfolio
Recruiters often look at GitHub. Keep repositories tidy with a README explaining the project, how to run it and what you found. Pin your best projects.
- Profile photo and bio
- Pinned projects
- README in each repo
- Regular commits
- No passwords or keys in code
Keep secrets out
Never commit passwords, API keys or private data. Use environment variables and a .gitignore file.
Tell us what you’re working on. Free estimate within 24 hours, NDA on request.