Learn Git and GitHub Basics for Your First Projects
Keep a history of your work
A repository tracks files and changes. Check status before committing and inspect a diff so you know what will be recorded.
Make useful commits
Commit a small, coherent change with a message that explains its purpose. If something breaks, history helps you understand what changed and when.
Use GitHub to share
A remote repository can make code accessible to collaborators. Add a README with setup and run instructions, and never commit passwords, API tokens, private user data, or generated secrets.
Collaborate carefully
Branches and pull requests provide a way to review proposed changes. Read changes before merging and ask for help when a conflict or unexpected file appears.