Inspect repository status
A sample repository with an initial commit is ready in your home directory.
git statusLearn version control in an online Git workspace: initialize repositories, inspect changes, and practice the workflow behind team collaboration.
Start here
Load a task into the terminal, then press Enter to see the result. Each example works in the introductory session on this page.
A sample repository with an initial commit is ready in your home directory.
git statusReview the sample repository’s commit history.
git log --onelineSee the active branch and any branches you create.
git branchInspect the tracked README file.
cat README.mdAdd a practice branch without switching away from main.
git branch practiceWrite a note that Git can track.
echo "Git practice" > notes.txtStage the included notes file or your edited version.
git add notes.txtInspect what is staged before committing.
git diff --cachedNo setup needed
Learn version control in an online Git workspace: initialize repositories, inspect changes, and practice the workflow behind team collaboration.
Start with the short command exercises above. When you are ready for a project, open the linked LabEx lab to work with real tools in an online Linux environment, with step-by-step guidance and immediate feedback.
Keep learning
Build on your Git experiments with a structured skill tree. Explore the skills, choose a guided lab, and practice each concept in an online environment.
Create a repository, stage changes, commit, and inspect history. Sign in to a hosted lab to work with real files and continue into branches, merges, and remote repositories.
The introductory exercises are free. Sign in for a complete LabEx environment; session duration and resources depend on your lab and plan.
No local installation is required. Sign in and open the lab in a modern browser. Follow the lab instructions to configure software inside the environment.
This preview supports a limited command set. Sign in and launch the Git lab for more commands, packages and services. Available software and permissions depend on the selected lab.
Follow the Git Skill Tree for guided labs and challenges. Practice regularly, inspect command output and ask Labby for help.
Your next step
Continue with real tools, guided labs, and Labby assistance.