Git records changes to your code, so you can see what changed, go back to a working version and work with others without overwriting their work. Every developer and DevOps learner uses it.
The commands to learn first
git init: start tracking a folder.git addandgit commit: save a snapshot with a message.git status: see what has changed.git log: see the history of commits.git pushandgit pull: share your work with a remote repository.
From first commit to first pull request
Create a repository on GitHub, clone it, make a branch for one change, commit the change, push the branch, and open a pull request. Ask someone to review it before merging.
Good commit messages
Write a short message that says what changed and why, such as “Add login validation for empty password”. Avoid messages like “fix” or “changes”.
Next step: see our Python Full Stack course, where Git is used in projects at ScholarLogic, or book a free demo class. A counsellor will share the fee and the next batch dates.
