Practice creating a feature branch, making changes, committing, and pushing the branch.
Understand a clean day-to-day Git workflow used in team development.
Inspect the current state of your working directory before making changes.
Command
git statusExpected Result
You should see the current branch and any modified or untracked files.
Start a new isolated branch for your changes.
Command
git checkout -b feature/lab-demoExpected Result
Git should switch you to the new branch.
Add modified files to the staging area.
Command
git add .Expected Result
Your changes should be staged for commit.
Save your staged work into repository history with a clear message.
Command
git commit -m 'add feature branch workflow lab'Expected Result
Git should create a new commit successfully.
Upload your local feature branch so it can be reviewed or backed up.
Command
git push origin feature/lab-demoExpected Result
The new branch should appear on the remote repository.
You understand how to create, commit, and push work on a feature branch.
You can describe a safe branch-based workflow used in real teams.